docker volume rm $(docker volume ls -f dangling=true -q)
docker rmi $(docker images -f dangling=true -q)
| 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 |
| # 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 % |
| # Delete any old containers and services | |
| sudo docker service ls | |
| sudo docker service rm $(sudo docker service ls -q) | |
| sudo docker rm -f $(sudo docker ps -a -q) | |
| # Show you can just run containers with the "exact same CLI" | |
| docker run -it debian |
| #How to dump qemu device properties (example for virtio-net) | |
| qemu-system-x86_64 -device virtio-net,help | |
| #To rollback to DESIRED_VERSION | |
| swupd verify --fix -m $(DESIRED_VERSION) | |
| git reset --soft "HEAD^" | |
| git commit --amend | |
| #side by side terminal diff |
| 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. |
| # 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 |
https://github.com/kubernetes/minikube
Note: Ensure that you have an active default virtual machine network setup on your machine. This can be verified using
virsh net-list
You should see something along the lines of
| 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 |