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
SRC_DIR=src | |
TGL_DIR=${SRC_DIR}/tgl | |
# SOURCE FILES | |
TG_FILES = main loop interface json-tg lua-tg python-tg python-types | |
MTP_FILES = common client key utils | |
TGL_FILES = binlog queries structures tgl tgl-net tgl-timers tg-mime-types tools updates $(addprefix mtproto-, ${MTP_FILES}) | |
CRYPT_FILES = aes bn err md5 rand rsa_pem sha | |
AUTO_FILES = autocomplete fetch skip store types fetch-ds free-ds print-ds store-ds |
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 bash | |
# To install Telegram-CLI, run the command: | |
# curl -s https://gist.githubusercontent.com/Higgs1/01448cace611ef60c004efa6ac3c1c90/raw | bash /dev/stdin | |
# Optionally specify an output file, otherwise will default to ./telegram-cli | |
GIT_REPO='https://github.com/Cojad/tg.git' | |
LUA='5.2' # LUA Version | |
PY='3.5' # Python Version |
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 functools | |
import ipaddress | |
import itertools | |
import requests | |
import re | |
# Source: https://github.com/ClitherProject/Slither.io-Protocol/blob/master/ServerList.md | |
def Layer1Decoder(stream): # (Steps 2, 3, and 4) | |
shift = 0 |
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
// ==UserScript== | |
// @name Slither.IO Simple Graphics Mode | |
// @namespace [email protected] | |
// @include http://slither.io/ | |
// @version 1 | |
// @run-at document-idle | |
// @grant none | |
// @updateURL https://gist.github.com/Higgs1/18f425dcea1bcdd0cc1a42859ab24d16/raw/slither.user.js | |
// ==/UserScript== |
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
-- 1. Label Computer | |
-- 2. Save file as "/startup" | |
while true do | |
for slot=1,16 do | |
if turtle.getItemCount(slot) > 0 then | |
turtle.select(slot) | |
for j=slot+1,16 do | |
if turtle.compareTo(j) then | |
turtle.select(j) |
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 -*- | |
from functools import partialmethod | |
import struct, math, io | |
def _boc(end): | |
if end is 'little': | |
return '<' | |
elif end is 'big': |
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
""" | |
Rationale: Some websites make it difficult to scrape from by obfuscating their otherwise JSON data with | |
things such as unquoted object keys, concatenated strings, comments, etc. which are all valid JavaScript | |
constructs but invalid JSON. This usually forces would-be web scraper developers to emulate an entire | |
browser just to mine the data, which apparently is a fairly successful deterrent. This script parses the | |
JavaScript AST without executing any potentially malicious JavaScript DRM code, and correctly parses a | |
number of valid JavaScript constructs into a Python dictionary. | |
It also provides methods to quickly download a web page and search for a global variable using pyquery. | |
""" |
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
# Read title! Should be able to download any apk of any version, as long | |
# as it's free. Paid apps are not supported, even if you've paid for them | |
# (should be easy to implement, but I haven't bought any apps yet). | |
# PyPI "requests" | |
import requests | |
import io | |
# Step 0. Google Constants + Inputs | |
url_root = 'https://android.clients.google.com/' |