Delete dangling volumes
docker volume rm $(docker volume ls -f dangling=true -q)
docker rmi $(docker images -f dangling=true -q)
Get the docker log on a systemd platform
# 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 % |
Thought I would document something that helps speed up github code review process for people who have lots of PR's in flight that build | |
on top of each other | |
My normal workflow involves | |
1. Branch off of master for PR1 on branch branch_pr1 | |
2. Submit a PR from branch_pr1 (head of this branch is sha_pr1_old) | |
3. Wait for code review comments ## | |
4. Continue development for PR2 on branch_pr2 which is off of branch_pr2 (you have branched off at sha_pr1_old) | |
5. Submit a PR from branch_pr2 | |
6. When you get code review feedback for branch_pr1, incorporate it and squash them back on branch_pr1 (to keep a clean history on github) |
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 |
docker volume rm $(docker volume ls -f dangling=true -q)
docker rmi $(docker images -f dangling=true -q)
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) |