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
# 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 |
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
./configure --enable-rubyinterp --prefix=$HOME/opt --enable-cscope --enable-perlinterp --enable-pythoninterp --enable-multibyte --with-features=big |
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
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 |
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
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(): | |
""" |
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
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"); | |
}); | |
} |
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 <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" | |
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
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' |
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
AnyEvent::MessagePack -> node-msgpack | |
seems to work as expected... yay. | |
recv 4 bytes | |
147 | |
1 | |
2 | |
3 | |
unpacked 1,2,3 |
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
cd /tmp | |
git clone git://github.com/ry/node.git | |
cd node | |
git checkout 3768aaae | |
./configure --prefix=/tmp/node |
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
/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 |