Skip to content

Instantly share code, notes, and snippets.

@ChamoSolitario
ChamoSolitario / .deps...npm...@openzeppelin...contracts...interfaces...IERC5267.sol
Created January 13, 2025 02:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
@clintcolding
clintcolding / rpisshkeys
Created July 9, 2019 17:25
Configure Raspberry Pi SSH Keys
#---- Create key on client ----#
ssh-keygen -b 2048 -t rsa
#---- Validate creation ----#
ls ~/.ssh
#---- SSH to Pi and create the SSH directory and file ----#
mkdir .ssh
cd .ssh
touch authorized_keys
@pablotolentino
pablotolentino / Visual Studio 2022 Product Key
Created November 20, 2021 20:41
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 13, 2025 02:32
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@drisspg
drisspg / scaled_mm_api.md
Last active January 13, 2025 02:31
Scaled MM API

Summary

This doc servers as a quick reference for the _scaled_mm API and how it has changed overtime for each major version of PyTorch.


NOTE The leading underscore is intended here and we make no current FC/BC guarantees on this API. That being said it is currently the only OP that has native support for FP8 matmuls within the PyTorch Libary. We are planning to make an official Public api for this. Until then this is subject to change but you can use this doc as a reference.


/*
#Task is to implement a function inventoryList such that:
#- it maintains the collection of all item names existing in an inventory, where each item is uniquely identified by a name.
#- returns a new object, with three methods:
# - add(name): the string name parameter is passed, and it is added to the collection. It is guaranteed that at any time, if an item is in the collection, then no longer item with the same name will be added to the collection.
# - remove(name): the string name parameter is passed, and this item is removed from the collection if it exists. If it does not exist, nothing happens.
# - getList(): this returns an array of names of items added so far. The names are returned in the order the corresponding items were added.
# Sample Case(s):
@hucsmn
hucsmn / convmv_shift_jis.py
Last active January 13, 2025 02:25
批量转换日文zip解压产生的文件名乱码的 python3 脚本
# 批量转换日文zip解压产生的文件名乱码
# 确保 python3 已安装,把乱码文件拖到这个脚本上即可
import sys, os
for dir in sys.argv[1:]:
for root, dirs, files in os.walk(dir, topdown=False):
print("[%s]" % root)
for src in dirs+files:
dst = src.encode('mbcs').decode('shift_jisx0213')
@Brandonbr1
Brandonbr1 / readme.md
Last active January 13, 2025 02:25
This Simply Disables all useless or uneeded for windows 10/11 services to make your computer faster.

Make sure you run this script as admin,otherwise it will fail to execute

About this script

Warning this is a hardcore removal script, unlike the others, This tries to fully remove almost all uneeded services, without making the computer unusable

Disclamer

By running or using this script you accept. I am not hield responsible if anything breaks or stops working on your computer/machine. That is your fault and it is up to you to re-enable the service.

Printers will not work with this script.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 13, 2025 02:22
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized