Skip to content

Instantly share code, notes, and snippets.

View ismaels's full-sized avatar

Ismael Stahelin ismaels

View GitHub Profile
@ismaels
ismaels / apply_set_allowances.py
Last active April 3, 2026 18:32 — forked from poly-rodr/set_allowances.py
CLOB Allowance Setting Python + Neg Risk
from web3 import Web3
from time import sleep
from web3.constants import MAX_INT
from web3.middleware import ExtraDataToPOAMiddleware
rpc_url = "https://polygon-bor-rpc.publicnode.com" # Polygon rpc url
priv_key = "" # Polygon account private key (needs some MATIC)
pub_key = "" # Polygon account public key corresponding to private key
chain_id = 137
@ismaels
ismaels / list-github-org-repos.py
Created June 17, 2020 17:23 — forked from tilayealemu/list-github-org-repos.py
List organization's repos, last commit date to master and committer
# Script to fetch all repos under a git organization
# Returns last committer to master and date of commit
# Results sorted by commit date
# Replace ORG_NAME, USERNAME, and PASSWORD variables
import urllib2
import requests
import json
ORG_NAME = 'my-org'
@ismaels
ismaels / install_mysql.sh
Created September 25, 2017 20:57 — forked from rrosiek/install_mysql.sh
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
###
#
# install_mysql.sh
#
# This script assumes your Vagrantfile has been configured to map the root of
# your application to /vagrant and that your web root is the "public" folder
# (Laravel standard). Standard and error output is sent to
# /vagrant/vm_build.log during provisioning.