Skip to content

Instantly share code, notes, and snippets.

View gist:95d68c6da02bda34db1691fe5e67b806
BEGIN MESSAGE.
1ROTYYopp1oboLR YWQgVaFF356O0ah E8qx7WOugXZ0P65 urb5drzrp5da2dS
IH7Cl9od5cmCgpH kvjhHcqWdHDTCKq 6Xr2MZHgg6Iwuop UlYm1RmA4xOYca3
nJaoouU5ZCg814M KuNDLWo1Odblt3k ZNQ0AM0EDljBix1 T2N5UHR6uvT63mE
hybtAFh89GGAOYu roJzMZc3KcC0iZz zCBR.
END MESSAGE.
View wait.patch
diff --git a/src/runsvdir.c b/src/runsvdir.c
index 07c1d8e..5197bec 100644
--- a/src/runsvdir.c
+++ b/src/runsvdir.c
@@ -2,6 +2,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <signal.h>
+#include <sys/wait.h>
#include "direntry.h"
View keybase.md

Keybase proof

I hereby claim:

  • I am rem7 on github.
  • I am yanko (https://keybase.io/yanko) on keybase.
  • I have a public key ASD0-B1KIRqvkLiDGLCpyCDUS8JnqWJuKRkiOmCoJqZhOwo

To claim this, I am signing this object:

View gist:bc38f53c8fb3ae12f3b2
root@ab977c6c73db:/var/log/supervisor# startup.sh
eth0 Link encap:Ethernet HWaddr a6:e9:23:01:80:44
inet addr:100.68.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::a4e9:23ff:fe01:8044/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:878 (878.0 B) TX bytes:648 (648.0 B)
View gist:a2f43378997655d06fb2
FROM ubuntu
RUN apt-get update
RUN apt-get install -y bridge-utils
ADD startup.sh /usr/bin/
RUN chmod +x /usr/bin/startup.sh
ADD pipework /usr/bin/
RUN chmod +x /usr/bin/pipework
@rem7
rem7 / gist:f96b1a3c9296ea963404
Last active Aug 29, 2015
/usr/bin/startup.sh
View gist:f96b1a3c9296ea963404
#!/bin/bash
ifconfig
echo 'waiting for eth0 and eth1'
/usr/bin/pipework --wait -i eth0
echo 'found eth0'
/usr/bin/pipework --wait -i eth1
echo 'found eth1'
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
View gist:1919045
rem7@awesometoo ~/gostuff $ echo $GOPATH
/home/rem7/gostuff
rem7@awesometoo ~/gostuff $ sh -c 'echo $GOPATH'
/home/rem7/gostuff
rem7@awesometoo ~/gostuff $ go get github.com/simonz05/godis
rem7@awesometoo ~/gostuff $ go list
can't load package: .: path "/home/rem7/gostuff" not inside a GOPATH
rem7@awesometoo ~/gostuff $ go get -v -x
.: unrecognized import path "."
rem7@awesometoo ~/gostuff $ go get -v
View gist:1762716
@@ -230,7 +230,12 @@ int redisContextConnectTcp(redisContext *c, const char *addr, int port, struct t
sa.sin_family = AF_INET;
sa.sin_port = htons(port);
- if (inet_pton(AF_INET, addr, &sa.sin_addr) == 0) {
+
+ // Windows XP does not support inet_pton so using
+ // inet_addr instead.
+ sa.sin_addr.S_un.S_addr = inet_addr(addr);
View gist:1239849
bin/mspec ci -T -X18 --background --agent
rubinius 2.0.0dev (1.8.7 5a806f11 yyyy-mm-dd JI) [x86_64-apple-darwin11.1.0]
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................