Skip to content

Instantly share code, notes, and snippets.

@cruzer45
cruzer45 / Original lyrics
Created October 1, 2012 14:59 — forked from alex/Original lyrics
I'm proud to be a unix programmer
If tomorrow all the things were gone,
I’d worked for all my life.
And I had to start again,
with just my children and my wife.
I’d thank my lucky stars,
to be livin here today.
‘ Cause the flag still stands for freedom,
and they can’t take that away.
@cruzer45
cruzer45 / README.markdown
Created November 29, 2012 05:07 — forked from marijn/README.markdown
List of nationalities in YAML, CSV and TXT format

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

@cruzer45
cruzer45 / README.markdown
Created November 29, 2012 05:09 — forked from marijn/README.markdown
List of countries in YAML, CSV and TXT format

#List of countries

It's time someone compiled a list of countries to use within a web application. This gist attempts to make a first move at that.

List of nationalities

I've also compiled a list of nationalities

@cruzer45
cruzer45 / Subversion- All files touched by user.sh
Last active December 21, 2015 07:29
Subversion - One liner script to list all files touched by a specific user.
svn log -v -r{2013-08-01}:HEAD | awk '/^r[0-9]+ / {user=$3} /./ {if (user=="mrogers") {print}}' | grep -E "^ M|^ G|^ A|^ D|^ C|^ U" | awk '{print $2}' | sort | uniq
#!/bin/bash
#Backup Databases
echo "Backing up Databases"
'/home/mrogers/Projects/Databases/automysqlbackup-v3.0_beta3/automysqlbackup' '/home/mrogers/Projects/Databases/automysqlbackup-v3.0_beta3/automysqlbackup.conf'
#Sync back the directories.
echo "Backing up Desktop"
rsync -avh --progress --del /home/mrogers/Desktop /run/media/mrogers/CRUZER/mrogers/
#!/bin/bash
set -exo pipefail
BUILD_ENV=$1
if [ `uname` == 'Darwin' ]; then
OSX=1
JSCOMPRESSOR="yuicompressor --type js"
else
OSX=
@cruzer45
cruzer45 / gist:7270922
Created November 1, 2013 19:50
One liner to enable line numbers and syntax highlighting in nano
echo $'\nset const\n' | tee -a ~/.nanorc && for f in /usr/share/nano/*.nanorc; do cat $f ; done >> ~/.nanorc
@cruzer45
cruzer45 / parent.java
Created February 12, 2014 20:59
Life of a parent.
while (child.isAwake()){
if (child.hunger > 0){
child.feed();
}
else if(child.isCrying){
if (child.getReasonForCrying() == Crying.LOGICAL){
child.pacify();
}
else{
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
@cruzer45
cruzer45 / gist:ceae0b0361faf6a6555b
Created March 5, 2015 20:46
Syntax highlighting in nano
for f in /usr/share/nano/*.nanorc; do cat $f ; done >> ~/.nanorc