Skip to content

Instantly share code, notes, and snippets.

View xenoterracide's full-sized avatar

Caleb Cushing xenoterracide

View GitHub Profile
#!/bin/bash
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export ORACLE_BASE="${HOME}/app/oracle"
export ORACLE_HOME="${ORACLE_BASE}/product/11.2.0/dbhome_1"
export ORACLE_SID=orcl
@xenoterracide
xenoterracide / game.pl
Created April 25, 2010 21:59
Guess a number game
#!/usr/bin/env perl
# guess a number game
use strict;
use warnings;
use feature qw( say state switch );
say 'welcome';
# generate the winning number between 1 and 10
# see perlfaq4 for algorithm details
@xenoterracide
xenoterracide / game.pl
Created April 25, 2010 22:03
Guess a number game
#!/usr/bin/env perl
# guess a number game
use strict;
use warnings;
use feature qw( say state switch );
say 'welcome';
# generate the winning number between 1 and 10
# see perlfaq4 for algorithm details
@xenoterracide
xenoterracide / game.pl
Created April 25, 2010 22:11
Guess a Number Game
#!/usr/bin/env perl
# guess a number game
use strict;
use warnings;
use feature qw( say state switch );
say 'welcome';
# generate the winning number between 1 and 10
# see perlfaq4 for algorithm details
@xenoterracide
xenoterracide / etcat.sh
Created April 25, 2010 23:52
cat that displays tabs at 4 spaces
etcat() {
env cat "$@" | env expand -t 4;
}
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
getprint("http://gist.github.com/api/v1/xml/380537")
or die "Can't get the Gist of it";
@xenoterracide
xenoterracide / dist.ini
Created April 29, 2010 01:03
Dist::Zilla config
; remove GatherDir from basic so we can specify it seperately
[@Filter]
bundle = @Basic
remove = GatherDir
; specify the where your ungenerated source lives
[GatherDir]
root = src
; specify where you want the generated source to live
[CopyTo]
@xenoterracide
xenoterracide / PKGBUILD
Created May 1, 2010 15:27
Perl 5.12.0 PKGBUILD
# $Id: PKGBUILD 54319 2009-10-08 13:26:47Z francois $
# Maintainer: kevin <kevin.archlinux.org>
# Contributor: judd <jvinet.zeroflux.org>
# Contributor: francois <francois.archlinux.org>
pkgname=perl
pkgver=5.12.0
pkgrel=0
pkgdesc="Practical Extraction and Report Language"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
getprint("http://aur.archlinux.org/packages/modern-perl/modern-perl/PKGBUILD");
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
my $content = get("http://aur.archlinux.org/packages/modern-perl/modern-perl/PKGBUILD");
print $content;