Verifying that +cel is my Bitcoin username. You can send me #bitcoin here: https://onename.io/cel
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/sh | |
# http://stackoverflow.com/questions/4528869/how-do-you-attach-a-new-pull-request-to-an-existing-issue-on-github | |
if [ $# -lt 4 ]; then | |
echo "Usage: ${0##*/} [issue_num] [username/repo] [base_branch] [head_username:branch]" >&2 | |
exit 1 | |
fi | |
user="$(pass github.com|awk '/^username:/{print $2}')" | |
issue=$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
#!/bin/sh | |
# update-cjdns | |
# Usage: put in crontab: | |
# 0 0 * * * /usr/local/sbin/update-cjdns | |
cd /opt/cjdns || exit 1 | |
git pull | grep -q 'Already up-to-date' && exit 0 | |
tmp="$(mktemp)" |
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
<?php | |
header('Content-Type: text/plain'); | |
$secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
$branch = 'master'; | |
$hub_signature = @$_SERVER['HTTP_X_HUB_SIGNATURE']; | |
if (!$hub_signature) { | |
http_response_code(403); | |
exit('missing signature'); | |
} |
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 <stdio.h> | |
#include <string.h> | |
#include <StandardFile.h> | |
#include <Memory.h> | |
#include <Files.h> | |
#include <Devices.h> | |
OSErr MyOpenDF(ConstStr255Param fileName, short vRefNum, short *refNum) | |
{ | |
OSErr oe; |
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 coffee | |
# install dependencies: npm install irc | |
irc = require 'irc' | |
server = 'hubbard.freenode.net' | |
nickServPassword = '' | |
nick = 'bongbot' | |
client = new irc.Client server, 'bongbot', |
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
P=pjstatus | |
OBJECTS= | |
CFLAGS = -g -Wall -O3 | |
LDLIBS= | |
CC=gcc | |
PREFIX=/usr/local | |
$(P): $(OBJECTS) | |
install: $(P) |
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/sh -e | |
### BEGIN INIT INFO | |
# hyperboria.sh - An init script (/etc/init.d/) for cjdns | |
# Provides: cjdroute | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Cjdns router | |
# Description: A routing engine designed for security, scalability, speed and ease of use. |
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 coffee | |
# put this file in the same dir as namecoind executable | |
child_process = require 'child_process' | |
child_process.exec './namecoind name_list', (err, stdout, stderr) -> | |
(JSON.parse stdout).forEach (domain) -> | |
if domain.expires_in < 5000 | |
command = "./namecoind name_update #{JSON.stringify domain.name} #{JSON.stringify domain.value}" |
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 | |
# git.sh - Interactive Git Shell | |
# store command history here | |
HISTFILE=~/.gitsh_history | |
control_c() { | |
# save history before exiting | |
history -a | |
# i can't figure out how to make this just break out of the read command |
NewerOlder