Profile cover photo
Profile photo
Captain Wishaw
11 followers
11 followers
About
Posts

Post has attachment
Ansible in a Virtualenv
Tested on Arch Linux. First install support for the Virtualenv $ pip2 install virtualenv Create the virtualenv to host ansible : $ virtualenv --system-site-packages ansible_env Activate the environment $ source ansible_env/bin/activate Install a specific ve...
Add a comment...

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
How To: Automatically cd to a directory after you create it
The
majority of the times that I create a directory I would then change
to that directory. To make this happen automatically I add the following to my .bashrc : mkcd
() { mkdir -p "$@" && eval cd "\"\$$#\"";
} Example
: $
mkcd ~/tmp/FOO $
pwd /home/cw/tmp/FOO
Add a comment...

Post has attachment
How To: Display your Top 10 cli commands
Its useful to
be able to see which command you use most often on a Linux box. I add
the following to my .bashrc : cli-top-10()
{ 72
history | awk '{a[$2]++ } END{for(i in a){print a[i] " "
i}}' | sort -rn | head } Example
output : 57
ls 49
cd 26
mv 25
cu...
Add a comment...

Post has attachment
How To: Permanently Display line numbers for Vim or Vi
It can be very
useful when troubleshooting to display line numbers in Vim or Vi. To
enable this in your ~/.vimrc file add : :set number which can also be
manually set within Vim or Vi. Within the editor to remove the line
numbers : :set nonumber
Add a comment...

Post has attachment

Post has attachment
VirtualBox slow on installation of Guest OS
I use VirtualBox for testing in many environments. Normally the defaults are fine for installing Linux but on one environment it was really slow to just install. Installing Debian Jessie from an ISO would normally take 15 minutes but in this environment aft...
Add a comment...
Wait while more posts are being loaded