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 bytes; | |
use Carp; | |
use File::Copy qw/ cp /; | |
# See: http://www.wsgf.org/dr/simcity-3000/en |
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
# plackup echo_headers.pl | |
use strict; | |
use warnings; | |
use Plack::Request; | |
use JSON; | |
my $app = sub { | |
my $req = Plack::Request->new(shift); |
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
<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
use warnings; | |
load_plugin qw( | |
Colors | |
Interrupt | |
Completion | |
CompletionDriver::INC | |
CompletionDriver::LexEnv | |
CompletionDriver::Keywords | |
CompletionDriver::Methods |
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
sendkeys: sendkeys.cpp | |
g++ -o sendkeys sendkeys.cpp -L/usr/lib64/ -lX11 | |
all: sendkeys |
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); |
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 | |
# Change the mayor's name in SimCity 2000 | |
# | |
# You should probably stick with plain ASCII if you use it. | |
use strict; | |
use warnings; | |
use bytes; |