Skip to content

Instantly share code, notes, and snippets.

View 10se1ucgo's full-sized avatar
👨‍🎓
grinding

Hammaad K. 10se1ucgo

👨‍🎓
grinding
  • United States
View GitHub Profile
@10se1ucgo
10se1ucgo / ips+domains.txt
Last active February 23, 2016 01:44
IPs and domains blocked/re-routed by DisableWinTracking
# Blocked IPs (Firewall)
2.22.61.43
2.22.61.66
65.39.117.230
65.52.108.33
65.55.108.23
23.218.212.69
134.170.30.202
137.116.81.24
157.56.106.189
3750 v2.3
9062 v2.2.1
3389 v2.2
379 v2.1.1
4896 v2.1
2897 v2.0 (REWRITE)
86436 v1.5
7620 v1.4
1490 v1.3
274 v1.2
import requests
import json
r = requests.get('https://api.github.com/repos/10se1ucgo/DisableWinTracking/releases')
total_count = 0
if r.ok:
jsonobj = json.loads(r.text or r.content)
# Python version of https://gist.github.com/almirsarajcic/4664387
def convert_id(id):
if len(id) == 17:
converted = int(id[3:]) - 61197960265728
else:
converted = '765' + str(int(id) + 61197960265728)
return str(converted)
@10se1ucgo
10se1ucgo / Phoenix.diff
Created February 24, 2016 01:48
Compiling wxPython Phoenix for Python 3.5
diff --git a/build.py b/build.py
index d084d52..ca0fbe6 100755
--- a/build.py
+++ b/build.py
@@ -239,7 +239,7 @@ def setPythonVersion(args):
#
TOOLS = os.environ.get('TOOLS')
if 'cygdrive' in TOOLS:
- TOOLS = runcmd('c:/cygwin/bin/cygpath -w '+TOOLS, True, False)
+ TOOLS = runcmd('cygpath -w '+TOOLS, True, False)
#!python3
from adl3 import *
class ADLError(Exception):
pass
def load_driver():
if ADL_Main_Control_Create(ADL_Main_Memory_Alloc, 1) != ADL_OK:
@10se1ucgo
10se1ucgo / idiot.py
Last active March 27, 2016 18:13
Put in your scripts folder and add to your scripts list. (if you're an idiot)
"""
Please don't use this.
Creator: 10se1ucgo
"""
import sys
from StringIO import StringIO
from commands import alias, name, admin, add
@10se1ucgo
10se1ucgo / defusal.py
Last active March 17, 2024 21:07
A bomb defusal game mode for classic Ace of Spades (0.x)
"""
Creator: 10se1ucgo
------------------
A lot of this code is pretty confusing
Why? Because I suck at this kind of programming! Woo!
Hey, at least it runs. Maybe I'll port it to Iceball.
I completely regret my decision in making this.
Note: There might be some broken stuff. Haven't been able to test this that much.
"""
from __future__ import division
@10se1ucgo
10se1ucgo / browser.py
Last active April 29, 2016 22:19
a bns server browser. Requirements: wxPython-Phoenix, ObjectListView, requests, pycountry.
#!python3
import os
import wx
import requests
from ObjectListView import ObjectListView, ColumnDefn
from pycountry import countries
import flags
@10se1ucgo
10se1ucgo / ree.py
Created November 15, 2016 21:39
hi this is an interpreter but it's written in python so it's basically cheating right
import enum
import operator
import shlex
from collections import namedtuple, deque
class TokenType(enum.Enum):
IDENT = 0
NUM = 1
OP = 2