I hereby claim:
- I am kvannotten on github.
- I am kristofv (https://keybase.io/kristofv) on keybase.
- I have a public key whose fingerprint is 98E4 229A 1522 1BBE 6B4D 6BAB D893 5439 2922 A5ED
To claim this, I am signing this object:
package main | |
import ( | |
"bytes" | |
"fmt" | |
"strings" | |
) | |
func main() { |
049ab8414d2b32c3f5f18dd710dcab4bf1d7d4e123128b4f7d99bf4588fdc5aed2c468518fbfca32969dcbfa690c057fa886a536bce2f521cf72350fef0cd61ed0;Masterlyn |
I hereby claim:
To claim this, I am signing this object:
var inputStream : NSInputStream? | |
var outputStream : NSOutputStream? | |
func connect() { | |
var readStream : Unmanaged<CFReadStream>? | |
var writeStream : Unmanaged<CFWriteStream>? | |
let host : CFString = NSString(string: self.host) | |
let port : UInt32 = UInt32(self.port) | |
CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, host, port, &readStream, &writeStream) |
#!/usr/bin/env ruby | |
# get current state | |
immutable = `defaults read com.apple.dock contents-immutable`.to_i == 1 | |
# toggle the state | |
immutable = !immutable | |
# write the state | |
`defaults write com.apple.dock contents-immutable -bool #{immutable ? "YES" : "NO"}` |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG/MacGPG2 v2.0.20 (Darwin) | |
mQINBFJc5fUBEADOZFIatFXbkoeYrbPFf5Ix1UHMcsmmWcNQ2jLoa/aQo9pFgm8p | |
OQy7+B45XfFYl5QDgqK0dZjtaHLQKbIjqrZU1ZiwjOsXiGmd0man0tnZPC+Ac/b9 | |
dh0Vg6brDhi4ss2WKCABH9NZTmsTQSf85zCn/sKTDWtefa4hEG02GfBpgsHTkAjE | |
P05I3CFRdXdpH5G0ykTj0YBOXkFpkD9Mzv6uho3QnjIiUqXIVo2em6YVecKEeFFx | |
CmWplaMlBxhubpnUddTPXGPTogC+GrHlmoUMOSiA2Cj1W+SZYhOj8ThV1Qwv7x/g | |
Z+O3ZaNKPl3Yijr7gv8gs6nSNS5UjHpXVEMvyVUHnTQsREqQgihHE4pIL0fz6CZ6 | |
tlEmv1i9kclhzt7UzNIu/SAbNwJ2Y6OfvW9839567aVDvnl46JzOqntJ5c8aCfwW |
require "celluloid" | |
DIRECTORY = "PUT DIRECTORY HERE" | |
PICTURE_EXTENSIONS = %w{ jpg png } | |
BORDER_SIZE = "3x3" | |
BORDER_COLOR = "black" | |
NEW_SIZE = 1200 | |
DO_AUTO_ORIENT = false | |
WORKERS = 8 |
I, [2013-09-04T19:00:01.810680 #58738] INFO -- : Internet is up! | |
I, [2013-09-04T19:04:49.426047 #58738] INFO -- : Internet down! | |
I, [2013-09-04T19:06:11.865051 #58738] INFO -- : Internet is up! | |
I, [2013-09-04T19:07:26.452834 #58738] INFO -- : Internet down! | |
I, [2013-09-04T19:07:32.854117 #58738] INFO -- : Internet is up! | |
I, [2013-09-04T19:12:06.356444 #58738] INFO -- : Internet down! | |
I, [2013-09-04T19:12:34.224192 #58738] INFO -- : Internet is up! | |
I, [2013-09-04T19:14:01.071976 #58738] INFO -- : Internet down! | |
I, [2013-09-04T19:14:07.528719 #58738] INFO -- : Internet is up! | |
I, [2013-09-04T19:15:22.179518 #58738] INFO -- : Internet down! |
#!/usr/bin/env ruby | |
require 'logger' | |
class SimpleDaemon | |
def self.start pid, pidfile, outfile, errfile | |
unless pid.nil? | |
raise "Fork failed" if pid == -1 | |
write pid, pidfile if kill pid, pidfile | |
exit |
static inline char * strcpy(char * dest,const char *src) | |
{ | |
int d0, d1, d2; | |
__asm__ __volatile__( "1:\tlodsb\n\t" | |
"stosb\n\t" | |
"testb %%al,%%al\n\t" | |
"jne 1b" | |
: "=&S" (d0), "=&D" (d1), "=&a" (d2) | |
: "0" (src),"1" (dest) | |
: "memory"); |