Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
$ sudo apt-get install mac-glue-pm588=1.30-2
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
fileutils: Depends: coreutils-default (>= 1:6.9-3) but it is not going to be installed
mac-glue-pm588: Conflicts: mac-glue-pm588-bin but 1.30-1 is to be installed
mac-glue-pm588-bin: Depends: mac-glue-pm588 (= 1.30-1) but 1.30-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get remove mac-glue-pm588
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
fileutils: Depends: coreutils-default (>= 1:6.9-3) but it is not going to be installed
mac-growl-pm588: Depends: mac-glue-pm588 (>= 1.30-2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
@jrabbit
jrabbit / gist:559913
Created August 31, 2010 22:47
download youtube comments
import gdata.youtube
import gdata.youtube.service
from BeautifulSoup import BeautifulSoup
yt_service = gdata.youtube.service.YouTubeService()
# The YouTube API does not currently support HTTPS/SSL access.
yt_service.ssl = False
yt_service.developer_key = "AI39si6sDAt4km6PVp3cw5U4MIoUAVKi-R0hVSALYdjz7EIH_Leik-7s_fxeHQZKpx6fXilSx5PvYqhk16Gg1APQFJDRncXh6g"
yt_service.client_id = "yt comments"
def get_comments():
<opml version="1.0">
<body>
<outline text="MSNBC Countdown (video)" xmlUrl="http://podcast.msnbc.com/audio/podcast/MSNBC-COUNTDOWN-NETCAST-M4V.xml" type="rss" />
<outline text="MSNBC Rachel Maddow (video)" xmlUrl="http://podcast.msnbc.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml" type="rss" />
<outline text="Democracy Now! Video" xmlUrl="http://www.democracynow.org/podcast-video.xml" type="rss" />
</body>
</opml>
@jrabbit
jrabbit / pip.py
Created September 21, 2010 20:10
there are two PIPs
from subprocess import *
import sys
#pip = sys.argv[0]
def is_python():
pip = Popen(['pip', '--version'], stdout=PIPE).communicate()[0]
if pip[-12:].split() == "(python":
return True
import pexpect
#from subprocess import *
if sys.argv[0] == "--bin":
server_bin = sys.argv[1]
else:
# if len(sys.argv) > 1:
# options = sys.argv
# else:
# options = "-Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer"
#!/bin/bash
ii -i irc -n minecraftbot -s irc.freenode.net
echo "/j #subreddit"
mkfifo minecraft
tail -f 'irc/#subreddit/out' | grep "<*>" > minecraft
./server_mod.sh < minecraft | tee | grep "<*>" | 'irc/#subreddit/in'
#!/bin/bash
ii -i irc -n minecraftbot -s irc.freenode.net
echo "/j #subreddit" > "irc/irc.freenode.net/in"
mkfifo minecraft
tail -f 'irc/irc.freenode.net/#subreddit/out' | grep "<*>" > minecraft
./server_mod.sh < minecraft | tee 1< | grep "<*>" | 'irc/irc.freenode.net/#subreddit/in'
cat > minecraft
@jrabbit
jrabbit / Round Clock.py
Created October 5, 2010 04:31
Kilosecond Clocks.
import Image, ImageDraw
import time
im = Image.open("kilosec_round.PNG")
draw = ImageDraw.Draw(im)
def kiloseconds():
tm = time.localtime()
return (tm.tm_hour*3600+tm.tm_min*60+tm.tm_sec)/1000.0
#http://github.com/api/v2/json/blob/show/bavardage/kiloseconds/03fac33ed6be1f0a004319cf7b8449d6d5fb10f3
<<<<<<< HEAD
SYSTEM_VERSION = '2.3.15'
=======
SYSTEM_VERSION = '2.3.9'
>>>>>>> CloudApp support is in.