Skip to content

Instantly share code, notes, and snippets.

# {
# 'assetSize' => '35[1]{2}',
# 'groupIdEdit' => '[Registere]{A}d[ User]{min}s',
# 'menuTitle' => '[New]{Old}',
# 'ownerUserId' => '[V]{Adm}i[sitor]{n}',
# 'snippet' => '[New]{Old} text is good to have even when we replace it with [old]{new} text',
# 'title' => '[New]{Old} revision',
# 'usePacked' => '[Yes]{No}'
# }
Date & Time, Trans, Elap Time, Data Trans, Resp Time, Trans Rate, Throughput, Concurrent, OKAY, Failed
2011-03-16 04:37:39, 3552, 239.28, 293, 6.09, 14.84, 1.22, 90.45, 3552, 0
2011-03-16 04:42:24, 3530, 239.72, 292, 6.71, 14.73, 1.22, 98.75, 3530, 0
2011-03-16 04:47:39, 3903, 239.93, 314, 6.07, 16.27, 1.31, 98.78, 3903, 0
2011-03-16 04:52:09, 2716, 239.76, 224, 0.88, 11.33, 0.93, 9.97, 2716, 0
2011-03-16 05:00:50, 3647, 239.82, 301, 1.31, 15.21, 1.26, 19.93, 3647, 0
2011-03-16 05:06:54, 3572, 239.57, 295, 2.67, 14.91, 1.23, 39.76, 3572, 0
2011-03-16 05:12:03, 3661, 239.86, 303, 5.19, 15.26, 1.26, 79.15, 3661, 0
2011-03-16 05:16:35, 3185, 239.49,
# Autocomplete for ssh hostnames
_compssh ()
{
cur=${COMP_WORDS[COMP_CWORD]};
COMPREPLY=($(compgen -W '$(sed -e "s/,.*$//" ${HOME}/.ssh/known_hosts )' -- $cur))
}
complete -F _compssh ssh
In <http://boston.conman.org/2009/11/05.1>, “The dinosaur that I am”,
Sean Conner (spc476) suggests a sort of silly bare-metal problem...
> to most programmers, even a simple text editor is a crutch.
>
> Imagine being given a 1982 era IBM PC with a floppy drive and a
> single disk that contains a bootable MS-DOS system with IO.SYS,
> MSDOS.SYS and COMMAND.COM (the minimum required to boot to a usable
> (for various values of “usable”) system at the time) and a stack of
Couldn't load class (Dist::Zilla::Dist::Builder) because: SCALAR(0x9488ec0) is not of type SCALAR at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/namespace/clean.pm line 56.
Compilation failed in require at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/i686-linux/Class/MOP.pm line 117.
at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/i686-linux/Class/MOP.pm line 123
Class::MOP::__ANON__('SCALAR(0x9488ec0) is not of type SCALAR at /data/wre/prereqs/...') called at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/Try/Tiny.pm line 100
Try::Tiny::try('CODE(0x91d2918)', 'Try::Tiny::Catch=REF(0x92b0b60)') called at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/i686-linux/Class/MOP.pm line 128
Class::MOP::load_first_existing_class('Dist::Zilla::Dist::Builder') called at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/i686-linux/Class/MOP.pm line 140
Class::MOP::load_class('Dist::Zilla::Dist::Builder', undef) called at /data/wre/prereqs/lib/perl5/site_perl/5.10.1/i686-linux/Moose/Meta/Class.pm line 486
Moose::Meta::Class
import flash.utils.Timer;
import flash.events.TimerEvent;
// Flags for which keys are pressed, so the next tick moves the ball
var keys:Object = {
right: false,
left: false,
up: false,
down: false
};
@preaction
preaction / gist:1043079
Created June 23, 2011 17:38
Use as "port -F file.txt"
install perl5 +threads
install apache2
install mod_perl2
install mysql5
install ImageMagick +no_x11 +perl
install p5-libwww-perl
install p5-dbi
install p5-dbd-mysql
install p5-net-dns
install p5-try-tiny
package Foo::Graph;
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = {
template => undef,
};
bless( $self, $class );
#my $template = shift || confess "missing template";
@preaction
preaction / gist:1441446
Created December 7, 2011 04:21
Exception handling in Perl
use Exception::Class( "My::X::NoData" );
sub could_die {
if ( rand > 0.5 ) { My::X::NoData->throw; }
}
sub will_die {
[]->{something};
}
@preaction
preaction / .Xdefaults
Created March 16, 2012 18:25
solarized dark for ancient Xterm
*background: rgb:00/2b/36
*foreground: rgb:65/7b/83
*fading: 40
*fadeColor: rgb:00/2b/36
*cursorColor: rgb:93/a1/a1
*pointerColorBackground:rgb:58/6e/75
*pointerColorForeground:rgb:93/a1/a1
!! black dark/light
*color0: rgb:07/36/42