Skip to content

Instantly share code, notes, and snippets.

@reiven
reiven / wuhu-install.sh
Last active April 27, 2020 19:07 — forked from Gargaj/wuhu-install.sh
Install script for Wuhu (tested on Debian)
#!/bin/bash
# install script for http://wuhu.function.hu/
if [ "$EUID" -ne 0 ]
then
echo "[wuhu] ERROR: This script needs to install a bunch of things, so please run as root"
exit
fi
echo "[wuhu] Installing packages..."
@reiven
reiven / docker-compose-1.6.yml
Last active October 3, 2017 15:21
Parity node inside docker-compose
version: '2'
services:
parity-local:
image: parity/parity:v1.6.10
working_dir: /parity/
command: --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors * --ui-interface 0.0.0.0 --chain dev
ports:
- 8545:8545
- 8080:8080
- 8180:8180
@reiven
reiven / Dockerfile
Last active May 10, 2018 09:40
Docker compose for Parity Ethereum node + Block explorer
FROM node:alpine
WORKDIR /app
RUN apk add --no-cache make gcc g++ git bash
RUN git clone https://github.com/carsenk/explorer.git
RUN cd explorer && npm install
WORKDIR /app/explorer
RUN sed -ie 's/localhost/0.0.0.0/g' package.json
@reiven
reiven / ethereum-address-generator.py
Created April 6, 2017 15:30
ethereum address generator
# -*- coding: utf-8 -*-
#!/usr/bin/python
# pip install ecdsa
# pip install pysha3
from ecdsa import SigningKey, SECP256k1
import sha3
keccak = sha3.keccak_256()
@reiven
reiven / imap-email-address-collector-plus-cc.py
Last active January 25, 2020 14:15
Python imap email addresses collector
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# imap-email-address-collector
#
import sys
import re
import csv
import getpass
import imaplib
#!/usr/bin/python
from azure.storage import BlobService
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("container", help="the blob container")
parser.add_argument("blob", help="the blob name")
parser.add_argument(
"-s", "--snapshot", help="take a new snapshot", action="store_true"
@reiven
reiven / daemoize.py
Last active August 29, 2015 14:05
Python Daemonize Class
# -*- coding: utf-8 -*-
# taken from http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
# and made it PEP8 compliant
import sys
import os
import time
import atexit
from signal import SIGTERM
@reiven
reiven / api.patch
Created September 9, 2010 00:32
patch to include retweets
--- api.py.old 2010-09-01 17:56:51.000000000 -0300
+++ api.py 2010-09-04 00:20:34.000000000 -0300
@@ -59,7 +59,7 @@
path = '/statuses/user_timeline.json',
payload_type = 'status', payload_list = True,
allowed_param = ['id', 'user_id', 'screen_name', 'since_id',
- 'max_id', 'count', 'page']
+ 'max_id', 'count', 'page','include_rts']
)