start new:
tmux
start new with session name:
tmux new -s myname
OUT := binariy-name | |
PKG := gitlab.com/group/project | |
VERSION := $(shell git describe --always --long --dirty) | |
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) | |
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/) | |
all: run | |
server: | |
go build -i -v -o ${OUT} -ldflags="-X main.version=${VERSION}" ${PKG} |
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
// Using the Jenkins Groovy Post build plugin to execute the following after every build | |
// https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin | |
// It would be nice not to have to specify these here... the repo name should be available within the hudson | |
// api somehow, but I didn't know how to get it. The access token should maybe be saved in a config file, and | |
// read in at runtime? | |
GITHUB_REPO_NAME = 'myusername/myreponame' | |
GITHUB_ACCESS_TOKEN = 'my_github_api_v3_access_token' |
#!/usr/bin/env python | |
# | |
# Proof of Concept: UDP Hole Punching | |
# Two client connect to a server and get redirected to each other. | |
# | |
# This is the client. | |
# | |
# Koen Bollen <meneer koenbollen nl> | |
# 2010 GPL | |
# |