Skip to content

Instantly share code, notes, and snippets.

View fictorial's full-sized avatar

Brian Hammond fictorial

View GitHub Profile
@fictorial
fictorial / Xcode4TestFlightintegration.sh
Created November 10, 2011 05:32 — forked from incanus/Xcode4TestFlightintegration.sh
Xcode 4 scheme Archive step Post-script for automatic TestFlight build uploading. See the blog post here: http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode
# https://testflightapp.com/account/
API_TOKEN=XXX
# https://testflightapp.com/dashboard/team/edit/
TEAM_TOKEN=XXX
# Whatever you use for Adhoc
SIGNING_IDENTITY="iPhone Distribution: XXX"
# Organizer > Devices > Provisioning Profiles > Ad Hoc then Reveal in Finder
./configure --enable-rubyinterp --prefix=$HOME/opt --enable-cscope --enable-perlinterp --enable-pythoninterp --enable-multibyte --with-features=big
diff -urN keepalived-silent-check/keepalived/include/vrrp.h keepalived-silent-check-unicast/keepalived/include/vrrp.h
--- keepalived-silent-check/keepalived/include/vrrp.h 2010-01-10 21:28:10.000000000 +0000
+++ keepalived-silent-check-unicast/keepalived/include/vrrp.h 2010-01-24 21:45:47.000000000 +0000
@@ -94,6 +94,8 @@
list track_ifp; /* Interface state we monitor */
list track_script; /* Script state we monitor */
uint32_t mcast_saddr; /* Src IP address to use in VRRP IP header */
+ uint32_t unicast_bind; /* listen to this IP if mcast is not possible */
+ uint32_t unicast_peer; /* send to this IP if mcast is not possible */
char *lvs_syncd_if; /* handle LVS sync daemon state using this
from bottle import get, run, debug, send_file, request, hook, abort, post
import os, redis, hashlib
r = redis.Redis()
OPEN_URLS = ( '/', '/users/new' )
@hook('before_request')
def require_authenticated_requests():
"""
function testHGETALL() {
client.hset("foo", "bar", "baz", expectNumber(1, "testHGETALL"));
client.hset("foo", "quux", "doo", expectNumber(1, "testHGETALL"));
client.hgetall("foo", function (err, all) {
if (err) assert.fail(err, "testHGETALL");
redisclient.convertMultiBulkBuffersToUTF8Strings(all);
checkDeepEqual(all, { bar:"baz", quux:"doo" }, "testHGETALL");
});
}
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#define SOCK_PATH "/tmp/test.sock"
node> fs.readFileSync('/proc/self/status')
'Name:\tnode\nState:\tR (running)\nSleepAVG:\t98%\nTgid:\t12179\nPid:\t12179\nPPid:\t12178\nTracerPid:\t0\nUid:\t1000\t1000\t1000\t1000\nGid:\t1000\t1000\t1000\t1000\nFDSize:\t32\nGroups:\t1000 \nVmPeak:\t 43628 kB\nVmSize:\t 43624 kB\nVmLck:\t 0 kB\nVmHWM:\t 7280 kB\nVmRSS:\t 6772 kB\nVmData:\t 35540 kB\nVmStk:\t 84 kB\nVmExe:\t 3628 kB\nVmLib:\t 4172 kB\nVmPTE:\t 44 kB\nThreads:\t1\nSigQ:\t1/2944\nSigPnd:\t0000000000000000\nShdPnd:\t0000000000000000\nSigBlk:\t0000000000000000\nSigIgn:\t0000000000001000\nSigCgt:\t0000000180010000\nCapInh:\t0000000000000000\nCapPrm:\t0000000000000000\nCapEff:\t0000000000000000\n'
AnyEvent::MessagePack -> node-msgpack
seems to work as expected... yay.
recv 4 bytes
147
1
2
3
unpacked 1,2,3
cd /tmp
git clone git://github.com/ry/node.git
cd node
git checkout 3768aaae
./configure --prefix=/tmp/node
/tmp ⚡ mkdir foo
/tmp ⚡ cd foo
/tmp/foo ⚡ git init
Initialized empty Git repository in /private/tmp/foo/.git/
/tmp/foo ⚡ echo "x" > x
/tmp/foo ⚡ git add x