start new:
tmux
start new with session name:
tmux new -s myname
| Enter varnish admin | |
| varnishadm | |
| clear cache for index home page only | |
| ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$" | |
| clear cache for specific page |
| #!/bin/bash | |
| sudo yum remove docker \ | |
| docker-common \ | |
| docker-selinux \ | |
| docker-engine | |
| sudo yum install -y yum-utils \ | |
| device-mapper-persistent-data \ | |
| lvm2 | |
| #!/bin/bash | |
| curl -sSL https://get.docker.com/ | sh | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER |
| # AWS specific install of Docker | |
| sudo yum update -y | |
| sudo yum install -y docker | |
| sudo service docker start | |
| sudo usermod -a -G docker ec2-user | |
| # exit the SSH session, login again | |
| # Docker | |
| docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq |
| #!/bin/sh | |
| set -e | |
| # This script is meant for quick & easy install via: | |
| # $ curl -fsSL get.docker.com -o get-docker.sh | |
| # $ sh get-docker.sh | |
| # | |
| # For test builds (ie. release candidates): | |
| # $ curl -fsSL test.docker.com -o test-docker.sh | |
| # $ sh test-docker.sh |
| # Configuration file for varnish | |
| # | |
| # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK | |
| # to be set from this shell script fragment. | |
| # | |
| # Should we start varnishd at boot? Set to "no" to disable. | |
| START=yes | |
| # Maximum number of open files (for ulimit -n) |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| #!/bin/bash | |
| # NOTE: This file is generated by script. | |
| # Modify "tpl/*" and run "./fire gen-files" | |
| # http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
| set -exuo pipefail | |
| export DEBIAN_FRONTEND=noninteractive | |
| export DBUS_SESSION_BUS_ADDRESS=/dev/null |
| #!/bin/bash/ | |
| #To run: | |
| # bash -c "$(curl -fsSL https://ADD-RAW-URL-HERE)" | |
| #Go to the following Resource URL | |
| #http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent-install.html | |
| #For Ubuntu: | |
| sudo apt-get update -y |