I hereby claim:
- I am OneOfOne on github.
- I am oneofone (https://keybase.io/oneofone) on keybase.
- I have a public key whose fingerprint is BE3F 3BD5 4E48 EDD7 3E58 EE52 F3A4 E8B6 760B 7805
To claim this, I am signing this object:
#!/bin/sh | |
BRANCH=$(git symbolic-ref --short HEAD) | |
if echo $BRANCH | grep -q master; then | |
echo no master pushing | |
exit 1 | |
fi | |
if git remote show -n origin | grep -q $BRANCH; then | |
git push "$@" | |
else |
client | |
dev tun | |
proto udp | |
remote remote-server.com 1194 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
ca /etc/openvpn/pki/ca.crt | |
cert /etc/openvpn/pki/issued/myclienthost.crt |
package main | |
import ( | |
"log" | |
"strconv" | |
"time" | |
"github.com/go-mangos/mangos" | |
"github.com/go-mangos/mangos/protocol/pub" | |
"github.com/go-mangos/mangos/protocol/sub" |
#!/bin/sh | |
if [[ $UID != 0 ]]; then | |
exec sudo $0 $@ | |
exit $? | |
fi | |
USER=your-user-name | |
NAME=dev-name | |
SSHARGS="-C hostname" # remote host name, passed to ssh |
#!/bin/sh | |
fname="$(mktemp cpp-run.XXXXX)" | |
cppArgs="" | |
runArgs="" | |
doRun=0 | |
doGDB=0 | |
keep=0 | |
for arg in "$@"; do | |
if [ "$arg" == "--" ]; then |
set -gx PATH $PATH "/usr/src/go/bin" | |
if test -d "$HOME/code/go" | |
set -xg GOPATH "$HOME/code/go" | |
set -xg PATH $PATH "$GOPATH/bin" | |
end | |
function rebuild-go | |
pushd /usr/src/go/src |
I hereby claim:
To claim this, I am signing this object:
from builtins import __xonsh_env__ | |
from subprocess import check_output, PIPE, CalledProcessError | |
from xonsh.tools import get_sep, XonshError | |
from os import listdir | |
from os.path import exists as pexists, join as pjoin, isfile | |
from collections import defaultdict, OrderedDict | |
def _branch_status(cwd=None): | |
branch = None | |
dirty = 0 |
#!/bin/sh | |
export QEMU_AUDIO_DRV=pa | |
DISKIMG=/mnt/data-7/qemu/win7/win7.img | |
WIN7IMG= | |
VIRTIMG=/media/storage/iso/virtio-win-0.1.118.iso | |
sudo chmod 666 /dev/bus/usb/$(lsusb | grep LifeCam | awk '{split($4,a,":"); print $2"/"a[1] }') | |
qemu-system-x86_64 --enable-kvm -drive file=${DISKIMG},format=raw,if=virtio,aio=native,cache=none -m 2048 \ | |
-net nic,model=virtio -net user -rtc base=localtime,clock=host \ |
#!/bin/bash | |
BRANCH=$(git symbolic-ref --short HEAD) | |
if echo $BRANCH | grep -q master; then | |
echo no master pushing | |
exit 1 | |
fi | |
args="" | |
nopr=0 | |
for arg in "$@"; do |