Skip to content

Instantly share code, notes, and snippets.

View bevancollins's full-sized avatar

Bevan Collins bevancollins

  • SentryBay
  • New Zealand
View GitHub Profile
@bevancollins
bevancollins / hpfortune.pl
Created November 30, 2011 08:31
HP (and compatible) printers have a feature to display abitary text in the LCD screen. This script will send a random fortune message to a printer. Setup a cron job to send a new message each hour.
#!/usr/bin/perl
use IO::Socket;
use Text::Wrap;
$ip = shift || die "$0 <ip address or name> [display columns] [display rows]";
$columns=20;
$columns = shift;
$rows=4;
$rows = shift;
@bevancollins
bevancollins / .bashrc
Created July 26, 2011 23:16
Bash Config
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
@bevancollins
bevancollins / .vimrc
Last active December 28, 2018 01:52 — forked from jeresig/.vimrc
VIM Config
" install pathogen plugin (https://github.com/tpope/vim-pathogen)
" cd %USERPROFILE%; mkdir vimfiles; cd vimfiles; mkdir bundle; cd bundle
" git clone git://github.com/scrooloose/nerdtree.git
" git clone git://github.com/dantler/vim-alternate.git
" git clone git://github.com/ervandew/supertab.git
" git clone git://github.com/vim-scripts/Wombat.git
" Pathogen
call pathogen#infect()
call pathogen#helptags()