Repositories
Mercurial: http://hg.gajim.org/gajim: 1,309 items, totalling 19.0 MB
Git:https://github.com/joyent/node 8,916 items, totalling 90.3 MB
Running Branch Command
| int fd; | |
| struct sockaddr_in cli_addr; | |
| int n; | |
| int p; | |
| n = fork(); | |
| if (n < 0) | |
| return n; | |
| if (!n) { |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_hg_branch() { | |
| echo -ne "[`hg branch 2> /dev/null`"; if [ "`hg status 2> /dev/null`" ]; then echo "*]"; else echo "]"; fi | |
| } | |
| function parse_git_branch() { | |
| B=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"` |
Repositories
Mercurial: http://hg.gajim.org/gajim: 1,309 items, totalling 19.0 MB
Git:https://github.com/joyent/node 8,916 items, totalling 90.3 MB
Running Branch Command
| var Imap = require('imap'), | |
| inspect = require('util').inspect; | |
| var imap = new Imap({ | |
| user: '[email protected]', | |
| password: 'XXXXX', | |
| host: 'imap.gmail.com', | |
| port: 993, | |
| secure: true | |
| }); |
| #!/bin/sh | |
| DRONE_SSID="ardone_adam" | |
| killall udhcpc | |
| udhcpd /tmp/udhcpd.conf | |
| ifconfig ath0 down | |
| iwconfig ath0 mode Ad-Hoc essid $DRONE_SSID channel auto commit | |
| ifconfig ath0 192.168.1.1 netmask 255.255.255.0 up |
| /usr/bin/alsa_in -j "USB 1" -d hw:default -q 1 |
#Creating media cards
Open Applications->Intellistreets->Gparted in main application menu. If instructed login with normal credentials.
Switch devices on the top right dropdown box to /dev/sdb or similair. Will be one with ~2GB. You may have to refresh by Ctl-R if you removed and inserted a new card.
Click on any partitions and click delete until you are left with a completely unallocated device.
Click Partition->New
| var exec = require('child_process').exec; | |
| function watermark(base,marker,output,callback){ | |
| var command = [ | |
| 'composite', | |
| '-watermark', '1x1', | |
| '-gravity', 'center', | |
| '-quality', 100, | |
| marker, | |
| base, |
| var five = require("johnny-five"), | |
| // or "./lib/johnny-five" when running from the source | |
| board = new five.Board(); | |
| board.on("ready", function() { | |
| // Create an Led on pin 13 and strobe it on/off | |
| // Optionally set the speed; defaults to 100ms | |
| (new five.Led(13)).strobe(); |