Skip to content

Instantly share code, notes, and snippets.

View justinvoss's full-sized avatar

Justin Voss justinvoss

View GitHub Profile
@justinvoss
justinvoss / syslog
Created July 8, 2016 06:11
Pokemon Go login error log
Jul 7 23:10:20 Justins-iPhone-6s kernel[0] <Notice>: Sandbox: pokemongo(14650) deny(1) file-write-create /private/var/mobile/Containers/Data/Application/B1C85012-204D-468B-B0F7-99CB00E7857D/.config
Jul 7 23:10:20 Justins-iPhone-6s kernel[0] <Notice>: Sandbox: pokemongo(14650) deny(1) file-write-create /private/var/mobile/Containers/Data/Application/B1C85012-204D-468B-B0F7-99CB00E7857D/.config
Jul 7 23:10:20 Justins-iPhone-6s kernel[0] <Notice>: Sandbox: pokemongo(14650) deny(1) file-write-create /private/var/mobile/Containers/Data/Application/B1C85012-204D-468B-B0F7-99CB00E7857D/.config
Jul 7 23:10:20 Justins-iPhone-6s kernel[0] <Notice>: Sandbox: pokemongo(14650) deny(1) file-write-create /private/var/mobile/Containers/Data/Application/B1C85012-204D-468B-B0F7-99CB00E7857D/.config
Jul 7 23:10:21 Justins-iPhone-6s pokemongo[14650] <Warning>: I: Setting host to: pgorelease.nianticlabs.com/plfe
Jul 7 23:10:22 Justins-iPhone-6s pokemongo[14650] <Warning>: I: [200] https://pgorelease.nianticlabs.com/plfe/rpc
@justinvoss
justinvoss / voicemail.py
Created June 28, 2014 19:04
An example of how to use Twilio to set up a bare-bones voicemail line for show listeners to call in to.
#!/usr/bin/env python
import os
from flask import Flask
from flask import request
import twilio.twiml
import smtplib
@justinvoss
justinvoss / RBServerLocator.h
Created December 12, 2011 05:34
Easy Bonjour Browsing
//
// RBServerLocator.h
//
// Created by Justin Voss on 12/9/11.
//
#import <Foundation/Foundation.h>
@interface RBServerLocator : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
{
@justinvoss
justinvoss / runserver-bonjour.py
Created December 9, 2011 19:27
Django + Bonjour
#!/usr/bin/env python
import sys
import subprocess
def runserver_bonjour(service_name, service_type, port):
django_process = subprocess.Popen(
['python', 'manage.py', 'runserver', '0.0.0.0:%s' % port],
@justinvoss
justinvoss / pyramid.py
Created November 23, 2011 17:21
Tennis Ball Pyramid Part Deux
def pyramid(level):
total = 0
for x in range(1, level+1):
total += (x * x)
return total
assert pyramid(1) == 1
assert pyramid(2) == 5
assert pyramid(3) == 14
@justinvoss
justinvoss / pyramid.py
Created November 23, 2011 17:11
Tennis Ball Pyramid
def pyramid(level):
if level == 1:
return 1
return (level * level) + pyramid(level-1)
assert pyramid(1) == 1
assert pyramid(2) == 5
assert pyramid(3) == 14
@justinvoss
justinvoss / spike.py
Created September 2, 2011 23:20 — forked from k0emt/Arguments.py
Overloading constructor example
class Greeter:
def __init__(self, greeting=None):
self.myGreeting = greeting or 'Hello World!'
def greeting(self):
return self.myGreeting
from fabric.api import settings, roles, env, run, sudo, cd
from fabric.decorators import task
from fabric import tasks
from fabric.contrib.project import rsync_project
env.roledefs = {
'dev': [
'vagrant@127.0.0.1:2222'
@justinvoss
justinvoss / example.sh
Created July 23, 2011 21:56
Possible Cache Issue
$ curl -v http://simpledesktops.com/api/desktop/random/
* About to connect() to simpledesktops.com port 80 (#0)
* Trying 205.186.149.79... connected
* Connected to simpledesktops.com (205.186.149.79) port 80 (#0)
> GET /api/desktop/random/ HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: simpledesktops.com
> Accept: */*
>
< HTTP/1.1 200 OK
@justinvoss
justinvoss / gist:1080521
Created July 13, 2011 15:26
Example of API Output
We couldn’t find that file to show.