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 -*- | |
| import sys | |
| import win32api | |
| import win32gui | |
| import struct | |
| from win32con import PAGE_READWRITE, MEM_COMMIT, MEM_RESERVE, MEM_RELEASE, PROCESS_ALL_ACCESS | |
| from commctrl import LVM_GETITEMW, LVM_GETITEMCOUNT, LVM_GETHEADER, HDM_GETITEMCOUNT,\ | |
| LVIF_TEXT, LVIF_IMAGE, LVIF_STATE, LVIF_INDENT | |
| import ctypes |
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
| import hashlib | |
| class MaglevHash(object): | |
| def __init__(self, m=65537): | |
| self.m = m | |
| self.permutation = {} | |
| self.entry = [None] * self.m | |
| self.tainted = False |
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 | |
| # 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 |
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 | |
| 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 + ": ") |