sudo apt install tcptraceroute
sudo wget https://gist.github.com/lostsnow/f0d9e5036212dbac5abace26dc359062/raw/d300f4f02f297200a2c44b0ec24bfaa6cc6a0665/tcping -O /usr/bin/tcping
sudo chmod +x /usr/bin/tcping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Amplify", | |
"Effect": "Allow", | |
"Action": [ | |
"amplify:*" | |
], | |
"Resource": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://docs.aws.amazon.com/zh_cn/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.MySQL.html | |
call mysql.rds_set_configuration('binlog retention hours', 24); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Localization | |
d-i debian-installer/locale string en_US | |
# Keyboard | |
# Disable interactive keymap detection. | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/layoutcode string us | |
# Network | |
d-i netcfg/choose_interface select auto |
⚠️ Do not do this for mainnet, this is a quick and insecure procedure that it's fine for Testnet only
- Download and install https://github.com/wealdtech/ethdo and https://github.com/ethereum/staking-deposit-cli
- Connect your Metamask to Holesky and generate a new address
- Use the address to get some 33 HolETH from https://holesky-faucet.pk910.de/
- Generate a new keystore for your validator using the
staking-deposit-cli
tool. Replace0xADDR
by your metamask address
./deposit.sh new-mnemonic --chain holesky --execution_address 0xADDR --num_validators 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stdclass | |
traversable | |
iteratoraggregate | |
iterator | |
arrayaccess | |
serializable | |
countable | |
throwable | |
exception | |
errorexception |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import os | |
from dongtai_agent_python.utils import scope | |
class CAPIPatch(object): | |
def __init__(self): | |
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
self.fh_lib = ctypes.cdll.LoadLibrary(os.path.join(base_dir, 'assess_ext/libfunchook.so.1')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[, http_request { | |
uuid: "139904951675056" | |
timestamp_ms: 1654831387786 | |
sender { | |
ip: "172.22.22.1" | |
} | |
receiver { | |
host: "172.22.22.11" | |
port: 5000 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import types | |
def both_instance_of(first, second, klass): | |
return isinstance(first, klass) and isinstance(second, klass) | |
def update_function(old_func, new_func): | |
if not both_instance_of(old_func, new_func, types.FunctionType): | |
return |
NewerOlder