This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="refresh" content="10" /> | |
<html> | |
<frameset cols="*"> | |
<frame id="todo" src="todo.txt"> | |
</frameset> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Dancer2::Plugin::RootURIFor; | |
use strict; | |
use warnings; | |
my $VERSION = 0; | |
use URI::Escape; | |
use Dancer2::Plugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from http://www.entropy.ch/blog/Developer/2009/03/30/Git-and-SVN-Status-in-the-Bash-Prompt.html : | |
# Prompt setup, with SCM status | |
parse_git_branch() { | |
local DIRTY STATUS | |
STATUS=$(git status 2>/dev/null) | |
[ $? -eq 128 -o $? -eq 127 ] && return | |
[[ "$STATUS" == *'working directory clean'* ]] || DIRTY=' *' | |
echo "($(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* //')$DIRTY)" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# rssfs.pl | |
use strict; | |
use warnings; | |
use Date::Parse; | |
use Fuse; | |
use HTML::FormatText::WithLinks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use MIDI::ALSA; | |
use SDL; | |
use SDL::Joystick; | |
use Time::HiRes qw( usleep ); | |
SDL::init_sub_system(SDL_INIT_JOYSTICK); | |
my $joystick = SDL::Joystick->new(0); | |
my $x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wait for project changes, run tests, report. | |
RED=1 | |
GREEN=2 | |
testcmd="make test" | |
exclude='^\.git|.*swp' | |
function report { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use FindBin; | |
use lib "$FindBin::Bin/../lib"; | |
use Foo::Schema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package WWW::QDB; | |
use v5.10.1; | |
use strict; | |
use warnings; | |
use HTTP::Tiny; | |
use HTML::TreeBuilder::XPath; | |
use Scalar::Util qw/looks_like_number/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newrepo() { | |
repo=$1 | |
if [ -z $repo ] ; then | |
echo "No repository name specified" | |
return 1 | |
fi | |
[[ ! $repo =~ \.git$ ]] && repo="${repo}.git" | |
sudo -u git git init --bare "/home/git/${repo}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use IMDB::Film; | |
use File::Copy; | |
use autodie; | |
# Rename DVD Rips, with suggestion from IMDB. | |
my $dir = shift || '/media/usb1/vids/Movies'; | |
opendir (my $dh, $dir); |
OlderNewer