This process has one critical flaw and you probably don't want to use it. git-svn is simpler.
You need:
- svn-all-fast-export (from the Debian/Ubuntu package of the same name;
| # Heavily depends on: | |
| # libqrencode (fukuchi.org/works/qrencode/) | |
| # paperkey (jabberwocky.com/software/paperkey/) | |
| # zbar (zbar.sourceforge.net) | |
| # Producing the QR codes: | |
| # Split over 4 codes to ensure the data per image is not too large. | |
| gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
| split temp -n 4 IMG | |
| for f in IMG*; do cat $f | qrencode -o $f.png; done |
| #!/usr/bin/env python | |
| try: | |
| from pip import get_installed_distributions | |
| except ImportError: | |
| from sys import exit | |
| exit("pip not available") | |
| from pkg_resources import parse_version |
| #!/usr/bin/python | |
| # | |
| # Very simple hacky ugly IRC server. | |
| # | |
| # Todo: | |
| # - Encode format for each message and reply with ERR_NEEDMOREPARAMS | |
| # - starting server when already started doesn't work properly. PID file is not changed, no error messsage is displayed. | |
| # - Delete channel if last user leaves. | |
| # - [ERROR] <socket.error instance at 0x7f9f203dfb90> (better error msg required) |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
This article is now published on my website: Prefer Subshells for Context.
| #!/bin/bash | |
| # if you do not have access to run the script, run "chmod 755 throttling" | |
| # to run enter in terminal "./throttling [speed]" | |
| # full (no throttling) | |
| # fast (300Kbit) | |
| # medium (100Kbit) | |
| # slow (10Kbit) | |
| # wwdc (1Kbit) | |
| # off (blocks connection) |