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
#!/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..." |
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: '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 |
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
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 |
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/python | |
# pip install ecdsa | |
# pip install pysha3 | |
from ecdsa import SigningKey, SECP256k1 | |
import sha3 | |
keccak = sha3.keccak_256() |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# imap-email-address-collector | |
# | |
import sys | |
import re | |
import csv | |
import getpass | |
import imaplib |
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
#!/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" |
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
# -*- 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 | |
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
--- 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'] | |
) |