docker volume rm $(docker volume ls -f dangling=true -q)
docker rmi $(docker images -f dangling=true -q)
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # split panes using | and - | |
| bind h split-window -h | |
| bind v split-window -v | |
| unbind '"' | |
| unbind % |
| https://www.reddit.com/r/Fedora/comments/3o6ijr/trying_fedora_23_for_the_first_time_why_do_fonts/ | |
| http://rpmfusion.org/Configuration | |
| su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm' | |
| sudo dnf install freetype-freeworld | |
| Add them to /etc/fonts/local.conf for system wide use. |
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| setlocal cinoptions=:0 | |
| setlocal spell spelllang=en_us | |
| set nu | |
| "Theme | |
| set background=dark | |
| colorscheme solarized |
| # Ensure that you install all the dependencies | |
| sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ | |
| libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | |
| libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | |
| python3-dev ruby-dev lua5.1 lua5.1-dev libluajit-5.1-dev git | |
| # Ensure that you have the right python config directory | |
| pip install python-config | |
| /usr/bin/python2.7-config --configdir |
| How to create a simple cloud image | |
| sudo apt-get install cloud-utils | |
| wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img | |
| mv xenial-server-cloudimg-amd64-disk1.img xenial-server-cloudimg-amd64-disk1.img.dist | |
| qemu-img convert -O qcow2 xenial-server-cloudimg-amd64-disk1.img.dist xenial-server-cloudimg-amd64-disk1.img | |
| qemu-img resize xenial-server-cloudimg-amd64-disk1.img +40G | |
| user-data | |
| #cloud-config |
| $ ssh -f -nNT -L 8080:127.0.0.1:8080 user@node0 [-p port] | |
| The UI should be available at | |
| http://127.0.0.1:8080/api/v1/proxy/namespaces/kube-system/services/kube-ui/#/ dashboard/ on the client machine. |
| iptables -I INPUT 1 -p tcp -m tcp --dport 8888 -j ACCEPT | |
| iptables -I INPUT 1 -p 47 -j ACCEPT | |
| iptables -I OUTPUT 1 -p 47 -j ACCEPT | |
| iptables -I INPUT 1 -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
| iptables -I OUTPUT 1 -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
| iptables -I FORWARD 1 -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
| iptables -I FORWARD 1 -p tcp --sport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT | |
| iptables -I FORWARD 1 -p udp -m udp --dport 67:68 -j ACCEPT | |
| iptables -I FORWARD 1 -p udp -m udp --dport 53 -j ACCEPT | |
| iptables -I FORWARD 1 -p udp -m udp --dport 123 -j ACCEPT |
| ttyrec and ttygif | |
| ttyrec: http://0xcc.net/ttyrec/ | |
| ttygif: https://github.com/sugyan/ttygif or https://github.com/sugyan/ttyrec2gif | |
| Instructions: | |
| % ttyrec | |
| (In the executed shell, do whatever you want and exit) |
| Install Clear Containers from Binary: | |
| https://github.com/01org/cc-oci-runtime/wiki/Installing-Clear-Containers-on-Ubuntu-16.04 | |
| Get the code: | |
| git clone https://github.com/01org/cc-oci-runtime | |
| cd cc-oci-runtime | |
| ./autogen.sh --with-cc-kernel=/usr/share/clear-containers/vmlinux.container --with-cc-image=/usr/share/clear-containers/clear-containers.img --with-cc-image-systemdsystemunitdir=/usr/lib/systemd/system | |
| make | |
| sudo make install | |
| sudo systemctl restart cc-proxy.service |