Skip to content
View gist:117656da9e8dcb15d8cf
~ $ npm install -g go-ipfs
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/substack/prefix/bin/node" "/home/substack/prefix/bin/npm" "install" "-g" "go-ipfs"
npm ERR! node v2.4.0
npm ERR! npm v3.2.2
npm ERR! code EREADFILE
npm ERR! Error extracting /home/substack/.npm/go-ipfs/0.3.0/package.tgz archive: ENOENT: no such file or directory, open '/home/substack/.npm/go-ipfs/0.3.0/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
View gist:559bd47dac7dd6f93738
$ torrent 'magnet:?xt=urn:btih:ec4595e48385e42cf9eb3acad02bf3a5928614ab&tr=udp%3A%2F%2F127.0.0.1%3A9000'
/home/substack/projects/torrent/node_modules/bncode/bncode.js:292
throw new Error('uneven number of keys and values A')
^
Error: uneven number of keys and values A
at cb_end (/home/substack/projects/torrent/node_modules/bncode/bncode.js:292:19)
at BdecodeSMachine.parse (/home/substack/projects/torrent/node_modules/bncode/bncode.js:166:17)
at Bdecode.decode (/home/substack/projects/torrent/node_modules/bncode/bncode.js:322:14)
at Object.decode (/home/substack/projects/torrent/node_modules/bncode/bncode.js:444:11)
at /home/substack/projects/torrent/node_modules/torrent-stream/index.js:552:17
View gist:5b551a8cce66ca6d95db
tmp $ torrent 'magnet:?xt=ec4595e48385e42cf9eb3acad02bf3a5928614ab&dn=whatever&tr=udp%3A%2F%2F127.0.0.1%3A9000'
buffer.js:85
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:85:11)
at new Buffer (buffer.js:53:3)
at toBuffer (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:16:42)
at new Swarm (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:143:18)
at Swarm (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:131:39)
View battery.txt
# | $ | AH | AH / $
--------------------------
1 159.12 70 0.43
2 64.99 35 0.53
3 18.00 10 0.56
4 29.89 18 0.60 ***
5 21.58 8 0.37
6 36.99 18 0.49
7 15.00 5 0.33
View machina.js
var riff = [ [200,10], [600,200], [800,10], [100,800] ];
var melody = [
1, -5, 2,
-20, -22, -19,
5, 2, 13, 10, 11, 19,
-20, -22, -19,
17, 10, 5, 14,
-20, -22, -19
];
View thumb.sh
#!/bin/bash
for file in `find images/full -iname \*.jpg`; do
if test \! -f images/thumb/`basename $file`; then
echo "make a thumb for $file"
fi
done
View gist:761fbadbfc81d46cc43c
$ watchify -p [ factor-bundle -o public/x.js -o public/y.js ] x.js y.js -o public/common.js -v
566 bytes written to public/common.js (0.23 seconds)
566 bytes written to public/common.js (0.20 seconds)
566 bytes written to public/common.js (0.17 seconds)
566 bytes written to public/common.js (0.18 seconds)
566 bytes written to public/common.js (0.12 seconds)
View gist:7d2d79a1d8b5d70508c2
~ $ node-gyp-install
Fetching header files from https://nodejs.org/dist/v2.4.0/node-v2.4.0.tar.gz
Error: incorrect header check
~ $ node -v
v2.4.0
View gist:28e0ef023845fc28cacf
~ $ dpkg -l|grep libesd0
rc libesd0:amd64 0.2.41-11 amd64 Enlightened Sound Daemon - Shared libraries
rc libesd0:i386 0.2.41-11 i386 Enlightened Sound Daemon - Shared libraries
View gist:a6eb27448268f97939bf
~ $ sudo apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
Something went wrong with that request. Please try again.