Skip to content

Instantly share code, notes, and snippets.

[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:支持
;增强国外GFW:支持
@islishude
islishude / usdt_abi.json
Last active August 4, 2023 03:34
usdt_abi.json
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
@islishude
islishude / install-containerd.sh
Last active August 22, 2021 11:35
install containerd
#!/bin/bash
set -eux
set -o pipefail
export VERSION=1.5.5
wget https://github.com/containerd/containerd/releases/download/v${VERSION}/cri-containerd-cni-${VERSION}-linux-amd64.tar.gz
tar --no-overwrite-dir -C / -xzf cri-containerd-cni-${VERSION}-linux-amd64.tar.gz
@islishude
islishude / iterm2-zmodem
Created April 11, 2021 04:34
iterm2-zmodem
#!/usr/bin/env bash
#
# iterm2-zmodem
#
# copyright (c) 2013 by Harald Lapp <[email protected]>
#
# AppleScript portion from:
# http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
@islishude
islishude / steam_chunk.go
Created April 6, 2021 06:49
steam chunk for golang
package main
import (
"encoding/json"
"os"
)
func main() {
stream := make(chan int, 1)
@islishude
islishude / test_erc20.sol
Created March 12, 2021 03:18
test_erc20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function symbol() external view returns (string memory);
function name() external view returns (string memory);
function decimals() external view returns (uint8);
@islishude
islishude / webauthn-issues-track.md
Created December 10, 2020 09:14
WebAuthn issues track
@islishude
islishude / uniswap-airdrop.sol
Created December 9, 2020 03:44
uniswap airdrop contract 0x090d4613473dee047c3f2706764f49e0821d256e
/**
*Submitted for verification at Etherscan.io on 2020-09-16
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.6.11;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
@islishude
islishude / build_sign_polkadot_rawtx.ts
Last active February 20, 2024 11:55
Polkadot transfer transaction build and sign(with SDK @polkadot/[email protected] & Polkadot Node v0.8.30)
import { ApiPromise, WsProvider, Keyring } from "@polkadot/api";
import { expandMetadata } from "@polkadot/metadata";
import { stringCamelCase, u8aToHex } from "@polkadot/util";
import {
blake2AsHex,
cryptoWaitReady,
encodeAddress,
} from "@polkadot/util-crypto";
import type { SignerPayloadJSON, AnyJson } from "@polkadot/types/types";
@islishude
islishude / install-docker-on-ubuntu.sh
Last active January 31, 2024 08:37
Install latest docker on ubuntu
#!/usr/bin/env bash
set -eux
set -o pipefail
# Add Docker's official GPG key:
apt-get update -y
apt-get install ca-certificates curl jq -y
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc