Skip to content

Instantly share code, notes, and snippets.

View phildobbin's full-sized avatar

Phil Dobbin phildobbin

View GitHub Profile
@phildobbin
phildobbin / gist:2400935
Created April 16, 2012 19:28
DBD::mysql failure Fedora 14 & perlbrew
`chmod 755 blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/Bundle::DBD::mysql.3
PERL_DL_NONLAZY=1 /home/fedora/perl5/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .................. 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 21.
@phildobbin
phildobbin / gitosis_setup_fedora.sh
Created April 15, 2012 06:02 — forked from cdwilson/gitosis_setup_fedora.sh
Gitosis setup instructions for Fedora
# Gitosis setup instructions for Fedora
# copied from http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
# and modified to work on Fedora
# Comment out the next two lines after you've changed this script to match your config
echo "This is not meant to be run as a script!"
exit 0
# do you have setuptools or distribute? if not, run these commands
cd ~/src
@phildobbin
phildobbin / periodic-port.sh
Created April 7, 2012 02:36 — forked from fracai/periodic-port.sh
A script to update MacPorts, fetch outdated ports, compile them, remove the inactive duplicates, and then sign the archives.
#!/bin/sh
# update macports and list outdated software
HOST=$(hostname|sed "s/.local//")
/bin/echo "=== Update MacPorts" | /opt/local/bin/gawk '{print strftime("%b %d %H:%M:%S"),"'${HOST}'",$0; fflush() }'
/opt/local/bin/port selfupdate --nosync 2>&1 | /opt/local/bin/gawk '{print strftime("%b %d %H:%M:%S"),"'${HOST}'",$0; fflush() }'
@phildobbin
phildobbin / rvm & Mac Ports
Created March 14, 2012 16:42
rvm & Mac Ports anomaly after running sudo port selfupdate
$ rvm info
ruby-1.9.3-p0:
system:
uname: "Darwin darkstar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
@phildobbin
phildobbin / rvm info & gem env Pt.II
Created March 14, 2012 10:48
rvm info & gem env 10:45 14/03/2012
$ rvm info
ruby-1.9.3-p0:
system:
uname: "Darwin darkstar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
@phildobbin
phildobbin / rvm & gem info
Created March 14, 2012 03:56
rvm info & gem env
$ rvm info
ruby-1.9.3-p0:
system:
uname: "Darwin darkstar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
@phildobbin
phildobbin / Mojolicious::Lite
Created January 7, 2012 10:05
fail on OS X Mojolicious::Lite
Mojolicious::Lite
# Failed test 'right path detected'
# at t/mojo/home.t line 17.
# Structures begin differing at:
# $got->[1] = 'users'
# $expected->[1] = 'Users'
# Failed test 'right path detected'
# at t/mojo/home.t line 33.
find `perl -e 'print "@INC" '` -name '*.pm' -print