Skip to content

Instantly share code, notes, and snippets.

View abarmat's full-sized avatar

Ariel Barmat abarmat

View GitHub Profile
openssl s_client -showcerts -connect ${DOMAIN}
@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
@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 / 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 / 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 / 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 / cursor-rules-1.txt
Created February 3, 2025 16:49
Rules for cursor LLMs
1. Embrace Simplicity Over Cleverness
- Write code that's immediately understandable to others
- If a solution feels complex, it probably needs simplification
- Optimize for readability first, performance second unless proven otherwise
- Avoid premature optimization
```python
# Avoid clever one-liners
# Bad
return [n for n in range(max_num) if all(n % i != 0 for i in range(2, n))]