Skip to content

Instantly share code, notes, and snippets.

View avar's full-sized avatar

Ævar Arnfjörð Bjarmason avar

View GitHub Profile
use strict;
use warnings;
use Test::More tests => 50;
use DBI;
use File::Temp qw<tempdir tempfile>;
# Dir to store our brains
my $dir = tempdir( "hailo-test-dbd-exists-XXXX", CLEANUP => 1, TMPDIR => 1 );
for (1 .. 50) {
2454 REP) status: is not entity
2454 REP) calling method on_directory_deletion
2454 pushdir /tmp/snerp-into
2454 GIT) already on branch branch-newfeatures
2454 RUN) git rm -r --ignore-unmatch -f -q -- phase3/images
2454 popdir /home/avar/g/snerp-vortex
2454 REP) doing: directory_copy branches/newfeatures/phase3/images
2454 REP) entity:
2454 REP) status: is not entity
2454 REP) calling method on_directory_copy
$ perl -le '$0 = "onion"; system "ps h $$ ; ps hc $$"'
8661 pts/4 S+ 0:00 onion
8661 pts/4 S+ 0:00 perl
$ ./perl -le '$0 = "onion"; system "ps h $$ ; ps hc $$"'
8633 pts/4 S+ 0:00 onion
8633 pts/4 S+ 0:00 onion
#!/bin/sh
mkdir ~/perl5-rc3
cd !$
wget http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/perl-5.12.0-RC3.tar.bz2
tar xjvf perl-5.12.0-RC3.tar.bz2
cd perl-5.12.0-RC3
./Configure -DDEBUGGING=both -Dusethreads -Dprefix=~/perl5-rc3/installed -des
make all test
make install
export PERL_AUTOINSTALL=--defaultdeps
export PERL_MM_USE_DEFAULT=1
sudo ~/perl5-rc3/installed/bin/cpan
cpan[1]> cpan[1]> o conf prerequisites_policy follow
prerequisites_policy [follow]
Please use 'o conf commit' to make the config permanent!
cpan[2]> o conf commit
commit: wrote '/home/avar/perl5-rc3/installed/lib/5.12.0/CPAN/Config.pm'
sudo ~/perl5-rc3/installed/bin/cpan install Moose Task::Catalyst MojoMojo
#!/bin/bash
cd /tmp/
wget http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/perl-5.12.0-RC3.tar.bz2
tar xjvf perl-5.12.0-RC3.tar.bz2
cd perl-5.12.0-RC3
./Configure -DDEBUGGING=both -Dusethreads -Dprefix=~/perl5-rc3/installed -des
make -j4 test_prep
./perl -Ilib -V:useithreads
421 2010-02-21 20:23:06 git svn init --trunk=rails_port --branches=rails_port_branches http://svn.openstreetmap.org/sites
422 2010-02-21 20:23:27 git svn fetch
423 2010-02-21 21:16:42 git log
429 2010-02-21 21:30:35 for i in $(git branch -l -a|grep -v tags/|grep '^ '|perl -pe 's/ //'|grep -v origin); do git checkout -b $(echo $i|sed s/remotes.//) $i; done
430 2010-02-21 21:30:39 git branch -l
431 2010-02-21 21:30:49 git checkout trunk
441 2010-02-21 21:32:53 export PATH=$PATH:/home/avar/g/git-svn-abandon/
443 2010-02-21 21:33:16 git-svn-abandon-cleanup
445 2010-02-21 21:36:47 git-svn-abandon-fix-refs
449 2010-02-21 21:37:28 git remote add openstreetmap-website-github git@github.com:avar/openstreetmap-website.git