start new:
tmux
start new with session name:
tmux new -s myname
docker-yml() { | |
docker inspect -f $' | |
{{.Name}} | |
image: {{.Config.Image}} | |
entrypoint: {{json .Config.Entrypoint}} | |
environment: {{range .Config.Env}} | |
- {{.}}{{end}} | |
' $1 | |
} |
#!/bin/sh | |
set -x | |
set -e | |
# | |
# Docker build calls this script to harden the image during build. | |
# | |
# NOTE: To build on CircleCI, you must take care to keep the `find` | |
# command out of the /proc filesystem to avoid errors like: | |
# | |
# find: /proc/tty/driver: Permission denied |
Switching NixOS architecture (32bit -> 64bit)
There are rumors, that you can switch from system architecture just adding 1 configuration option:
nixpkgs.system = "x86_64-linux"
and running nixos-rebuild boot && reboot
.
#!/bin/bash | |
if [ $# -ne 3 ]; then | |
echo "usage: $0 <unix socket file> <host> <listen port>" | |
exit | |
fi | |
SOCK=$1 | |
HOST=$2 | |
PORT=$3 |