View syslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View voicemail.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
from flask import Flask | |
from flask import request | |
import twilio.twiml | |
import smtplib |
View RBServerLocator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RBServerLocator.h | |
// | |
// Created by Justin Voss on 12/9/11. | |
// | |
#import <Foundation/Foundation.h> | |
@interface RBServerLocator : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate> | |
{ |
View runserver-bonjour.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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], |
View pyramid.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View pyramid.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View spike.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Greeter: | |
def __init__(self, greeting=None): | |
self.myGreeting = greeting or 'Hello World!' | |
def greeting(self): | |
return self.myGreeting |
View fabfile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
View example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
NewerOlder