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 | |
"""Usage: rabbit_admin [options] delete QUEUE | |
rabbit_admin [options] add QUEUE <KEY:VALUE>... | |
rabbit_admin [options] dump QUEUE | |
-D --not-durable don't use a durable queue | |
-h --help show this | |
-H --host HOST rabbitmq host [default: localhost] | |
""" |
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 | |
from __future__ import print_function | |
from functools import wraps | |
from getpass import getpass | |
from hashlib import sha512 | |
from poplib import POP3_SSL, error_proto | |
import email | |
import os | |
import socket | |
import sys |
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 getpass, imaplib, sys | |
from optparse import OptionParser | |
def main(): | |
parser = OptionParser() | |
parser.add_option('-s', '--save', help='file to save contents to') | |
parser.add_option('-d', '--delete', action='store_true', | |
help='delete contents') |
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
#!/bin/bash | |
# | |
# azilink for OS X Lion | |
# based on http://pastie.org/405289 but works with Tunnelblick only | |
# (no need to install a separate copy of OpenVPN2 from macports | |
# or building from source by hand, thankfully) | |
# Requires: | |
# - azilink running on android phone (http://code.google.com/p/azilink/) | |
# (run the app and check the box to start the service). | |
# - adb on system path (comes with the Android SDK; |
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
#include <errno.h> | |
#include <signal.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/select.h> | |
#include <sys/wait.h> | |
#include "job_manager.h" | |
volatile sig_atomic_t multiprocess_running = 0; |
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
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: $(basename $0) package_name" | |
exit 1 | |
fi | |
package=$1 | |
status=$(git status | head -n 1) |
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 | |
from __future__ import print_function | |
REPO_URL = 'git+git://github.com/sigmavirus24/github3.py.git' | |
import os | |
import sys | |
try: | |
from github3 import login | |
except ImportError: |
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 | |
"""Script to generate permenant OAuth tokens for the desired reddit scope.""" | |
from __future__ import print_function | |
import os | |
import praw | |
import sys | |
from pprint import pprint |
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 ruby | |
require './common.rb' | |
require 'socket' | |
def main | |
server = server_socket('0.0.0.0', 1024) | |
loop do | |
handle_client(*server.accept) | |
end |
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
010000 1 | |
010010 1 | |
001010 4 | |
110010 0 | |
100010 4 | |
100010 4 | |
110101 3 | |
010011 1 | |
010110 1 | |
001000 2 |
OlderNewer