Skip to content

Instantly share code, notes, and snippets.

@payload
payload / share.sh
Created January 26, 2012 23:46 — forked from astro/share.sh
Quick Sharing On The Local Chaos Bay
#!/bin/bash -e
URL=http://chaosbay.hq.c3d2.de
if [ -z "$1" ]; then
echo "Usage: $0 <file/dir>"
exit 2
fi
if [ -x "$(which mktorrent)" ]; then
@payload
payload / issue22.js
Created April 23, 2011 16:08
repo.branch fails on empty repo
var git = require('nodegit');
git.repo().init("foo", true, function() {
git.repo("foo", function(err, repo) {
repo.branch("master", function(err, branch) {
console.log({
err: err,
branch: branch
});
console.log("doing something else");
});