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
A DCW @001@ * VARIABLE "A" | |
B DCW @001@ * VARIABLE "B" | |
C DCW @000@ * VARIABLE "C" | |
COUNT DCW @000@ * VARIABLE "COUNT" | |
START MCS A,201+3 * MOVE A VARIABLE TO PRINT BUFFER | |
W * PRINT | |
LOOP BCE DONE,COUNT-1,1 * WHILE COUNT < 10 | |
MCS B,201+3 * MOVE B VARIABLE TO PRINT BUFFER | |
W * PRINT | |
A @1@,COUNT * COUNT++ |
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
import time | |
import subprocess | |
import re | |
import collections | |
class NSPlistParser(): | |
'''Thanks to @rndmcnlly for writing this!''' | |
def __init__(self): | |
# these will all get interpreted as raw literal values in the parser |
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
### Keybase proof | |
I hereby claim: | |
* I am jpf on github. | |
* I am jfranusic (https://keybase.io/jfranusic) on keybase. | |
* I have a public key whose fingerprint is 535A 06B0 6A4A CE7C D80C CEA2 60C5 039A 605A A1DA | |
To claim this, I am signing this object: |
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 StateLatch(object): | |
def __init__(self, changes_until_latched=2): | |
self._state = None | |
self.latch_count = changes_until_latched | |
@property | |
def state(self): | |
return self._state | |
@state.setter |
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
import os | |
import plistlib | |
import argparse | |
class CFBundle: | |
def __init__(self, path, kind='path'): | |
self.name = False | |
self.version = False |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say>Hello. I don't answer voice calls, please text me instead.</Say> | |
<Pause length="2"/> | |
<Hangup/> | |
<Sms>Trying to get ahold of me? Reply to this text!</Sms> | |
</Response> |
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 Queue import Queue | |
from time import sleep | |
import threading | |
class FileGenerator(object): | |
def __init__(self): | |
self.q = Queue() | |
def read_generator(self): |
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
mkdir archiveteam | |
cd archiveteam/ | |
sudo apt-get update | |
sudo apt-get install libssl0.9.8 libssl-dev lua5.1 liblua5.1-0-dev | |
sudo apt-get install build-essential git-core | |
git clone http://github.com/ArchiveTeam/posterous-grab.git | |
cd posterous-grab | |
git clone http://github.com/ArchiveTeam/seesaw-kit | |
cd seesaw-kit | |
sudo apt-get install python-pip |
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 -vv https://jf.posterous.com/ | |
* About to connect() to jf.posterous.com port 443 (#0) | |
* Trying 184.106.20.99... Connection timed out | |
* couldn't connect to host | |
* Closing connection #0 | |
curl: (7) couldn't connect to host |
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
import os | |
from twilio.rest import TwilioRestClient | |
from flask import Flask, request, render_template | |
app = Flask(__name__) | |
# TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN environment variables must be set | |
client = TwilioRestClient() | |
@app.route("/", methods=['POST', 'GET']) | |
def index(): |