Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Spencer Krum's Bad - Ass win code
#July 17, 2010
#Ascii taken unscrupulously from http://network-science.de/ascii
echo -en "\033[31;5m"
echo " _______ _______ _______ _______ _______ _______ _ _ "
echo "( ____ \|\ /|( ____ \\( ____ \\( ____ \\( ____ \\( ____ \\( )( )"
echo "| ( \/| ) ( || ( \/| ( \/| ( \/| ( \/| ( \/| || |"
import fortran_fact
fortran_fact.fact(x)
C File fortran_fact.f
subroutine fact (n)
integer fact, n, p
p = 1
do i = 1, n
p = p * i
end do
fact = p
print*, p
@nibalizer
nibalizer / gist:792142
Created January 23, 2011 15:20
we needz jorbs!
#!/usr/bin/python2.7
from BeautifulSoup import BeautifulSoup
import urllib2
import re
import time
pause = 30 #seconds
awesum_jorbs = {}
@nibalizer
nibalizer / bgchange.sh
Created June 13, 2011 01:49
quick WANT NEW BG script, also
#!/bin/bash
echo "Changing BG image"
cd ~/Images/wp
RANGE=`ls | wc -l`
number=$RANDOM
let "number %= $RANGE"
@nibalizer
nibalizer / vagrant.org
Created August 23, 2011 21:51
CentOS Box for Vagrant
@nibalizer
nibalizer / .bashrc excerpt
Created November 23, 2011 12:30
LESS_TERMCAP so that your manpages are colorful
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
@nibalizer
nibalizer / vm-watch.sh
Created February 7, 2012 12:33
Poor mans virt-viewer
#!/bin/bash
# Short shell script to connect to a remote libvirt vm. Best when run
# under an ssh agent and the user must be in libvirtd on the hypervisor
VNC_COMMAND="(/Applications/Chicken\ of\ the\ VNC.app/Contents/MacOS/ && \
./Chicken\ of\ the\ VNC \$VNC_COMMAND_ARGS &)"
HYPERVISOR=$2
@nibalizer
nibalizer / puppetsync
Created March 26, 2012 03:29
puppetsync shell script
#!/bin/sh
# File: GITOLITE_DIR/repositories/puppet.git/hooks/post-receive
puppetsync()
{
ssh $SSH_ARGS "$PUPPETMASTER" "$SYNC_COMMAND" \
--branch "$BRANCH" \
--repository "$REPO" \
--deploy "$DEPLOY" \
$DELETE
#!/bin/bash
#Spencer Krum's Bad - Ass win code
#July 17, 2010
#Ascii taken unscrupulously from http://network-science.de/ascii
echo -en "\033[31;5m"
echo " _______ _______ _______ _______ _______ _______ _ _ "
echo "( ____ \|\ /|( ____ \\( ____ \\( ____ \\( ____ \\( ____ \\( )( )"
echo "| ( \/| ) ( || ( \/| ( \/| ( \/| ( \/| ( \/| || |"