Skip to content

Instantly share code, notes, and snippets.

View abarmat's full-sized avatar

Ariel Barmat abarmat

View GitHub Profile
@abarmat
abarmat / cleanup_dev_pkg.sh
Created June 17, 2024 18:36
Recursively remove packages installations from a number of languages
#!/bin/bash
# Function to perform cleanup for Rust projects
cleanup_rust() {
if [ -f "Cargo.toml" ] && [ -d "target" ]; then
echo "[Rust] Cleaning project in $(pwd)"
cargo clean
fi
if [ -d "target" ]; then
@abarmat
abarmat / safe-add-delegate.py
Last active August 21, 2024 15:18
Add a delegate to a Gnosis Safe
import time
import requests
import click
from web3 import Web3
def create_message(delegate_address):
totp = int(time.time()) // 3600
return delegate_address + str(totp)
@abarmat
abarmat / StakingV2.json
Created February 22, 2021 14:54
Graph Protocol - StakingV2 ABI (indexer-rewards)
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "indexer",
"type": "address"
},
@abarmat
abarmat / TokenLockWalletABIRemix.json
Created December 17, 2020 20:08
TokenLockWallet ABI
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_oldManager",
"type": "address"
},
@abarmat
abarmat / marketplace-test-checklist.md
Last active August 2, 2019 18:14
Decentraland Marketplace : Test Checklist

Marketplace Test Checklist

Wallet

Connected

  • Show your MANA balance in the navbar
  • Show your MANA balance in the settings page
  • Show your wallet address in the settings page
openssl s_client -showcerts -connect ${DOMAIN}
{ tx: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d',
receipt:
{ transactionHash: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d',
transactionIndex: 0,
blockHash: '0xaf2af5f3c1bad937f0f998b0ed0b0ae01a576380d4d96b550038acfc4e28eda9',
blockNumber: 643,
gasUsed: 45004,
cumulativeGasUsed: 45004,
contractAddress: null,
logs: [] },
sha1sum ${FILENAME} | awk '{print $1}'
docker stop $(docker ps -a -q)