Skip to content

Instantly share code, notes, and snippets.

View Supermathie's full-sized avatar
🏠
Working from home, before it was cool

Michael Brown Supermathie

🏠
Working from home, before it was cool
View GitHub Profile
@Supermathie
Supermathie / BBM killed
Created June 3, 2018 14:29
BBM on Android dammit
Tasks: 737 total, 1 running, 727 sleeping, 0 stopped, 2 zombie
Mem: 3868764k total, 3380368k used, 488396k free, 143428k buffers
Swap: 1450780k total, 876928k used, 573852k free, 640464k cached
400%cpu 7%user 1%nice 16%sys 370%idle 0%iow 1%irq 4%sirq 0%host
PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS
773 shell 20 0 12M 2.8M 1.5M R 7.6 0.0 0:07.98 top
5051 radio 20 0 2.1G 11M 8.2M S 2.0 0.2 0:00.53 com.lge.ipservice
4575 u0_a148 20 0 2.1G 130M 55M S 2.0 3.4 333:05.11 com.android.systemui
3741 system 18 -2 2.6G 172M 69M S 2.0 4.5 933:21.24 system_server
660 system -2 -8 205M 10M 6.1M S 1.
@Supermathie
Supermathie / resize-java-iKVM-viewer
Created January 18, 2019 20:07 — forked from thwarted/resize-java-iKVM-viewer
resize-java-iKVM-viewer: find all supermicro Java iKVM Viewer windows and resize them to display all the content
#!/bin/bash
# find all supermicro Java iKVM Viewer windows and resize
# them to display all the content
#
# for reasons that are beyond sanity, this shitty closed source program
# sets the min and max window sizes to the same values, making it unresizable
# through dragging.
# this wouldn't be so bad if it actually resized the window to display all
# the content. it constantly resizes based on the resolution of the
@Supermathie
Supermathie / parseCSV.py
Created April 14, 2014 20:50
python CSV example
#!/usr/bin/env python
import csv
import sys
from pprint import pprint
csvreader = csv.reader(sys.stdin)
# Read the header line and extract the column names
header = csvreader.next()
#!/usr/bin/env ruby
#
# Proof of concept by Michael Brown (@supermathie)
require 'colorize'
require 'json'
require 'net/http'
REALM = ENV.fetch('POE_REALM', 'pc')
LEAGUE = ENV.fetch('POE_LEAGUE', 'Harvest')
OpenSSL::HMAC.hexdigest('SHA1', '8544E3B47ECA58F9583043F8'.scan(/../).map(&:hex).pack('c*'), '3CECEF000000'.upcase.scan(/../).map(&:hex).pack('c*'))[0..23].upcase.scan(/..../).join('-')
@Supermathie
Supermathie / BBEscreenUnlock.py
Created May 21, 2021 21:38
BlackBerry e-screen unlock
#!/usr/bin/env python
import hmac
import hashlib
import optparse
import sys
parser = optparse.OptionParser(
"usage: %prog -p PIN -a 'APP VERSION' -u UPTIME [-d DURATION]")
parser.add_option('-p', '--pin', help='Device PIN', dest='pin')
@Supermathie
Supermathie / gist:7423949
Created November 12, 2013 01:40
Windows 2008 EMS
$ virsh console ad1
Connected to domain ad1
Escape character is ^]
SAC>?
ch Channel management commands. Use ch -? for more help.
cmd Create a Command Prompt channel.
d Dump the current kernel log.
f Toggle detailed or abbreviated tlist info.
? or help Display this list.