Skip to content

Instantly share code, notes, and snippets.

View briandeheus's full-sized avatar
🆘

Brian de Heus briandeheus

🆘
View GitHub Profile
@briandeheus
briandeheus / dump.sql
Created November 17, 2014 01:46
All Steam Games MySQL
This file has been truncated, but you can view the full file.
-- --------------------------------------------------------
-- Host: 192.168.0.100
-- Server version: 5.5.40-0ubuntu0.14.04.1 - (Ubuntu)
-- Server OS: debian-linux-gnu
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
@briandeheus
briandeheus / keybase.md
Created March 5, 2016 02:51
keybase.md

Keybase proof

I hereby claim:

  • I am briandeheus on github.
  • I am bdh (https://keybase.io/bdh) on keybase.
  • I have a public key whose fingerprint is 3179 7AB1 FFC9 9B09 061C 3708 58A0 E6B8 D9AF 4697

To claim this, I am signing this object:

@briandeheus
briandeheus / reddress.js
Created June 16, 2016 09:48
Red Dress Matrix Helper
var matrix = Symbol('Matrix');
var length = Symbol('Length');
var xS = Symbol('x');
var yS = Symbol('y');
var parentS = Symbol('parent');
class BoundError extends Error {}
class RedDressWalker {
@briandeheus
briandeheus / punk.py
Last active April 1, 2022 02:53
Don't be a punk, punk
import binascii
import struct
class Punk(object):
_END_CHUNK_TYPE = 'IEND'
_PUNK_CHUNK_TYPE = 'puNk'
_MAX_BYTES = 2147483647
_chunks = dict()
@briandeheus
briandeheus / chronos.py
Created September 22, 2016 04:15
Chronos Utilities
from datetime import datetime
import sys
import os
def handle_sigterm(*args, **kwargs):
"""
Handle termination of the application via SIGTERM.
:param args:
:param kwargs:
@briandeheus
briandeheus / chronos-simple.py
Created September 22, 2016 04:30
Chronos Simple Service
from time import sleep
from lib import *
import signal
if __name__ == '__main__':
signal.signal(signal.SIGTERM, handle_sigterm)
write_to_file('Starting Chronos')
@briandeheus
briandeheus / message_queue.py
Created September 5, 2017 14:09
Distributed Message Queue in Python
from redis import Redis
import time
redis = Redis()
def work_from_queue(queue):
while True:
res = redis.rpop(queue)

If effective strategy requires realistic aims, then America is in trouble. US officials have shown themselves to be pathologically overconfident in their ability to achieve political outcomes with military signals, and the outcome they’re trying to achieve is utterly unrealistic.

Imagine if the US flew what North Korea thought were nuclear-capable bombers up near its border, sporadically at first, then once per month. Then twice per month. In parallel, the US starts sending nuclear-capable submarines to port in South Korea. Then it issues warning orders to US Navy surface ships armed with Tomahawk land-attack cruise missiles (the kind used against Syria in April) to program North Korean targets while patrolling in waters off North Korea’s eastern coast. Then it deploys fifth-generation stealth fighters to Japan in conjunction with the arrival of three aircraft carriers to the Pacific.

What do these military preparations look like?

Now imagine that the political rhetoric coinciding with all these mili

@briandeheus
briandeheus / useragents.txt
Created December 1, 2017 03:59
9400+ User Agents!
Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)
Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)
Mozilla/5.0 (compatible; ABrowse 0.4; Syllable)
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; Acoo Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Avant Browser)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; GTB5; Mozilla/4.0 (comp
@briandeheus
briandeheus / example.py
Last active February 14, 2018 10:02
How to properly use attributes in Python
class FaultyFoo (object):
bar = []
class GoodFoo (object):
def __init__(self):
self.bar = []