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
CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" FFLAGS="-g -O2" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" ./configure --prefix=/usr --sysconfdir=/etc --bindir=/bin --sbindir=/sbin --libdir=/lib/x86_64-linux-gnu/ --localstatedir=/var |
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
[caglar@qp:~/go/src/github.com/caglar10ur/lxc(devel)] make test | |
==> Running go test | |
=== RUN TestVersion-2 | |
--- PASS: TestVersion-2 (0.00 seconds) | |
lxc_test.go:40: LXC version: 1.0.0.beta2 | |
=== RUN TestDefaultConfigPath-2 | |
--- PASS: TestDefaultConfigPath-2 (0.00 seconds) | |
=== RUN TestSetConfigPath-2 | |
--- PASS: TestSetConfigPath-2 (0.00 seconds) | |
=== RUN TestGetContainer-2 |
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 | |
if [ ! -f /usr/bin/uidmapshift ]; then | |
wget https://bazaar.launchpad.net/~serge-hallyn/+junk/nsexec/download/head:/uidmapshift.c-20121030152620-2zy9rkac9y6htoia-8/uidmapshift.c | |
gcc -o uidmapshift uidmapshift.c | |
sudo mv uidmapshift /usr/bin/uidmapshift | |
rm -f uidmapshift.c | |
fi | |
uid=$(grep $USER /etc/subuid | cut -d : -f 2) |
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 | |
uid=$(grep $USER /etc/subuid | cut -d : -f 2) | |
gid=$(grep $USER /etc/subgid | cut -d : -f 2) | |
range=$(grep $USER /etc/subuid | cut -d : -f 3) | |
NOCOLOR="\033[0m" | |
OKCOLOR="\033[0;32m" | |
UNPRIVILEGED="unpriv" |
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
root 534 0.0 0.5 1426600 10264 ? Ss 21:03 0:00 lxc-test-concurrent -j 20 -i 100 | |
root 570 0.0 0.0 2260 496 ? Ss 21:03 0:00 \_ init | |
root 650 0.0 0.0 2260 260 ? Ss 21:03 0:00 \_ /bin/sh /etc/init.d/rcS | |
root 659 0.0 0.0 2260 264 ? S 21:03 0:00 | \_ /bin/udhcpc | |
root 652 0.0 0.0 2260 276 ? Ss 21:03 0:00 \_ /bin/syslogd | |
root 547 0.0 0.5 1434800 10276 ? Ss 21:03 0:00 lxc-test-concurrent -j 20 -i 100 | |
root 657 0.0 0.0 2260 496 ? Ss 21:03 0:00 \_ init | |
root 863 0.0 0.0 2260 260 ? Ss 21:03 0:00 \_ /bin/sh /etc/init.d/rcS | |
root 873 0.0 0.0 2260 264 ? S 21:03 0:00 | \_ /bin/udhcpc | |
root 870 0.0 0.0 2260 272 ? Ss 21:03 0:00 \_ /bin/syslogd |
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
Iteration 66/100 maxfd:3 | |
Executing (create) for 10 containers... | |
Executing (start) for 10 containers... | |
Executing (stop) for 10 containers... | |
Executing (destroy) for 10 containers... | |
Iteration 67/100 maxfd:3 | |
Executing (create) for 10 containers... | |
Executing (start) for 10 containers... |
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/sh | |
### BEGIN INIT INFO | |
# Provides: lxc | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $network $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: LXC Bridge | |
### END INIT INFO |
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 ( | |
"github.com/codegangsta/martini" | |
"net/http/pprof" | |
) | |
func main() { | |
m := martini.Classic() |
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
go get code.google.com/p/go.tools/cmd/godoc | |
go get code.google.com/p/go.tools/cmd/vet | |
go get code.google.com/p/go.tools/cmd/cover | |
go get github.com/golang/lint/golint | |
go get -u code.google.com/p/go.tools/cmd/godoc | |
go get -u code.google.com/p/go.tools/cmd/vet | |
go get -u code.google.com/p/go.tools/cmd/cover | |
go get -u github.com/golang/lint/golint |
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/sh | |
export PATH=$PATH:/usr/local/bin | |
# abort if we're already inside a TMUX session | |
[ "$TMUX" == "" ] || exit 0 | |
# startup a "default" session if none currently exists | |
tmux has-session -t DEFAULT || tmux new-session -s DEFAULT -d | |
# present menu for user to choose which workspace to open |