View bash_it-theme.bash
SCM_THEME_PROMPT_DIRTY=" ${bold_red}${normal}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}${normal}"
case $TERM in
#!/bin/env python
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ports = [ 5672 , 9581, 9582, 388 ]
for i in ports:
result = sock.connect_ex(('',i))
if result == 0:
print "Port %d is open" % i
print "Port %d is not open" % i
View commands on LSH
Collection of commands typed on the LSH
* `sudo apt install xfce4 xfce4-goodies tightvncserver`
* `vncserver`
* set a password (limit 8 characters)
* now have a vnc server running on :1
* vncserver -kill :1
* backup the .vnc/xstartup
View habitat in

Simple build system for packages

Uses bash scripts for the plans - check out

When making habitat packages you are building packages in isolation, so they don't depend on the build system's libraries tools, and you can make them portable. They are kind of making their own OS packages available.

Any of these packages can run on any linux OS that has a modern kernel on a x86_64 architecture (no love for RPi). Lots of tutorials.

hab studio enter

  • what you will see is only what was in the directory that you entered - it will look for a .bah
#!/usr/bin/env bash
# Usage: gina git_cleanup
# Summary: Detect and delete git branches that are merged and can be removed.
# This must be run from master
starting_branch=`git branch | grep ^\* | awk "{ print \$2 }"`
git checkout master
if [[ $? -ne 0 ]]; then
echo "git checkout master failed - bailing out before doing any further activities"
View ckblock
if [ -d $HOME/.chef ]; then
cd $HOME/.chef
knife_target=$(readlink knife.rb)
current=$(basename -s .rb ${knife_target/knife-/})
echo -n $current
echo ""
View win_fetch_cacerts.rb
$ cat ../win_fetch_cacerts.rb
require 'net/http'
require 'openssl'
require 'fileutils'
cert_dir = '/C/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/ssl_certs/'
FileUtils.mkdir cert_dir unless
# create a path to the file "C:\RailsInstaller\cacert.pem"
View ubuntu 14.04->16.04

bleach command helps me clean up my left over vagrant stuff.

Yes, vagrant global-status is not hard. I just dont' like the output. I like the output of bleach

LICENSE: MIT AUTHOR: Dayne Broderson