For keybase.io
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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mount.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <fcntl.h> | |
#include <sched.h> | |
#include <unistd.h> | |
#include <errno.h> |
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
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"path/filepath" | |
"syscall" | |
) |
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
{ | |
"version": "pre-draft", | |
"platform": { | |
"os": "linux", | |
"arch": "amd64" | |
}, | |
"process": { | |
"terminal": false, | |
"user": { | |
"uid": 0, |
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
package main | |
import ( | |
"log" | |
"github.com/fsouza/go-dockerclient" | |
) | |
func main() { | |
endpoint := "unix:///var/run/docker.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
#!/bin/bash | |
set -e | |
set -x | |
RUNC_GOPATH="$(mktemp -d)" | |
CONTAINERD_GOPATH="$(mktemp -d)" | |
PWD="$(pwd)" | |
function cleanup() { | |
rm -rf "${RUNC_GOPATH}" |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<edit name="rgba" mode="assign"> <const>rgb</const> </edit> | |
<edit name="hinting" mode="assign"> <bool>true</bool> </edit> | |
<edit name="autohint" mode="assign"> <bool>true</bool> </edit> | |
<edit name="antialias" mode="assign"> <bool>true</bool> </edit> | |
<edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> | |
<edit name="lcdfilter" mode="assign"> <const>lcdlight</const> </edit> |
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 --git a/Makefile b/Makefile | |
index a84c539..16b0ec1 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -25,7 +25,7 @@ MAN_INSTALL_PATH := ${PREFIX}/share/man/man8/ | |
VERSION := ${shell cat ./VERSION} | |
all: $(RUNC_LINK) | |
- go build -i -ldflags "-X main.gitCommit=${COMMIT} -X main.version=${VERSION}" -tags "$(BUILDTAGS)" -o runc . | |
+ go build -i -tags "$(BUILDTAGS)" -o runc . |
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 --git a/Makefile b/Makefile | |
index a84c539..de40636 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -25,7 +25,7 @@ MAN_INSTALL_PATH := ${PREFIX}/share/man/man8/ | |
VERSION := ${shell cat ./VERSION} | |
all: $(RUNC_LINK) | |
- go build -i -ldflags "-X main.gitCommit=${COMMIT} -X main.version=${VERSION}" -tags "$(BUILDTAGS)" -o runc . | |
+ go build -i -ldflags "-X main.gitCommit ${COMMIT} -X main.version ${VERSION}" -tags "$(BUILDTAGS)" -o runc . |
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
#!/bin/bash -x | |
runc list | awk '{print $1}' | grep -v ID | xargs runc delete -f | |
mount | grep shm | grep /tmp/tmp | awk '{print $3}' | xargs umount | |
mount | grep devicemapper | grep /tmp/tmp | awk '{print $3}' | xargs umount | |
rm -rf /tmp/tmp.* | |
mount | grep shm | grep /var/lib/ocid | awk '{print $3}' | xargs umount | |
mount | grep devicemapper | grep /var/lib/ocid | awk '{print $3}' | xargs umount | |
rm -rf /var/lib/ocid |