Skip to content

Instantly share code, notes, and snippets.

View fcicq's full-sized avatar

fcicq fcicq

View GitHub Profile
import hashlib
class MaglevHash(object):
def __init__(self, m=65537):
self.m = m
self.permutation = {}
self.entry = [None] * self.m
self.tainted = False
@fcicq
fcicq / twitcast.sh
Last active September 11, 2021 04:30 — forked from dyama/twitcast.sh
Simple recorder for Twitcasting.tv
#!/bin/bash
# coding: utf-8
# twitcast.sh by dyama
LIVESTREAMER="streamlink"
($LIVESTREAMER --version 1>/dev/null 2>&1) || (echo 'install streamlink first (run pip/pip3 install streamlink)'; exit)
if [ -n "$1" ]; then
id=$(echo "$1" | sed 's|^.*/||g')
while true; do
while true; do
(curl -s "http://api.twitcasting.tv/api/livestatus?user=$id" | grep "\"islive\":true") && break
@fcicq
fcicq / mywallet.py
Created August 16, 2012 08:49 — forked from anfedorov/mywallet.py
tools to decrypt blockchain.info wallet.json.aes
#!/usr/bin/env python
import base64, hashlib, hmac, json, sys, getpass
from Crypto.Cipher import AES
from Crypto.Hash import RIPEMD, SHA256
base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def prompt(p):
return getpass.getpass(p + ": ")