start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| set -ve | |
| lxc-create -n vpn -t ubuntu | |
| # ln -s /var/lib/lxc/vpn/config /etc/lxc/auto/vpn.conf | |
| perl -i -ple 's/#lxc.aa_profile = unconfined/lxc.aa_profile = unconfined/' /etc/lxc/auto/vpn.conf | |
| perl -i -ple 's/^exit 0/# exit 0/' /etc/rc.local | |
| cat >>/etc/rc.local <<hello | |
| mkdir -p /var/lib/lxc/vpn/rootfs/dev/net/ |
| """ | |
| Demo of json_required decorator for API input validation/error handling | |
| """ | |
| import inspect | |
| import functools | |
| import json | |
| from traceback import format_exception | |
| from flask import jsonify, request | |
| import sys |
| /* SPIDER -- a sample adventure game, by David Matuszek. | |
| Consult this file and issue the command: start. */ | |
| :- dynamic at/2, i_am_at/1, alive/1. /* Needed by SWI-Prolog. */ | |
| :- retractall(at(_, _)), retractall(i_am_at(_)), retractall(alive(_)). | |
| /* This defines my current location. */ | |
| i_am_at(meadow). |