Skip to content

Instantly share code, notes, and snippets.

Peter Sobot psobot

Block or report user

Report or block psobot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
psobot /
Created May 5, 2018
Instruments Decoder/Re-encoder
Copyright (c) 2012-2016, CCL Forensics
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
psobot /
Created Apr 3, 2018
Python File and Directory Helpers
import os
from glob import glob
class Directory(object):
def __init__(self, _dir=None):
if _dir:
self._dir = os.path.abspath(os.path.expanduser(_dir))
self._dir = os.path.abspath(os.getcwd())
psobot /
Last active Nov 27, 2017
Kurzweil K2500XS UI Generator
November 26, 2017 by @psobot
MIT licensed
Generates a screen image for the Kurzweil K2500XS
program list and keymap can be provided on the command line with
--programs <program 1> <program 2>...
psobot /
Created Jul 9, 2017
Xbox API Downloader

This tiny script hits the Xbox API and downloads a user's entire Xbox360 achievement history into flat JSON files on disk, as well as a Sqlite DB.


psobot / Context.sublime-menu
Created Mar 21, 2017
Rails "Copy Test Runner Command to Clipboard" for Sublime Text 2
View Context.sublime-menu
{ "command": "get_single_test_run", "caption": "Copy Test Runner Command to Clipboard" },
{ "caption": "-", "id": "end" }
psobot / NSDate+Extensions.swift
Created Jun 23, 2015
Swift NSDate Comparison Extension
View NSDate+Extensions.swift
// NSDate doesn't include overrides for standard comparison operators in Swift.
// This extension adds <, >, <=, >=, and ==, using NSDate's built-in `compare` method.
// MIT licensed.
func <=(lhs: NSDate, rhs: NSDate) -> Bool {
let res =
return res == .OrderedAscending || res == .OrderedSame
func >=(lhs: NSDate, rhs: NSDate) -> Bool {
let res =
psobot /
Last active Oct 28, 2019
Logic Pro X Project Bounce script
import os
import sys
import time
import atomac
import subprocess
if len(sys.argv) < 2:
print "Usage: <path_to_logic_project> (<path_to_logic_project>)"
psobot / phone_prefixes.json
Last active Apr 7, 2018
Mapping of phone number prefixes to geographic coordinates, countries and regions.
View phone_prefixes.json
"+1": [[63.004759, -99.392855], "Canada"],
"+1242": [[26.215829, -98.187851], "Bahamas"],
"+1246": [[13.186666, -59.55727], "Barbados"],
"+1264": [[18.217056, -63.050923], "Anguilla"],
"+1268": [[17.08682, -61.796431], "Antigua and Barbuda"],
"+1284": [[18.719042, -64.326495], "British Virgin Islands"],
"+1340": [[33.282206, -117.185162], "US Virgin Islands"],
"+1345": [[19.323764, -81.195721], "Cayman Islands"],
"+1441": [[32.301277, -64.77506], "Bermuda"],
psobot /
Created Mar 29, 2014
keybase prove github

Keybase proof

I hereby claim:

  • I am psobot on github.
  • I am psobot ( on keybase.
  • I have a public key whose fingerprint is B8C4 380D 42A7 C58C 9528 93AD 66BD 052C A0BF 6065

To claim this, I am signing this object:

View Makefile
.PHONY: run
run: test
test: test.o runtime.o
gcc -arch i386 $^ -o $@
%.o: %.asm
nasm -f macho $< -o $@
You can’t perform that action at this time.