Skip to content

Instantly share code, notes, and snippets.

View throughnothing's full-sized avatar

William Wolf throughnothing

View GitHub Profile
@ironcamel
ironcamel / README.md
Last active August 29, 2015 13:58 — forked from dolmen/README.md
Check if you are vulnerable to the OpenSSL heartbleed bug.

Check if you are vulnerable to the OpenSSL « heartbleed » bug.

curl -s https://gist.githubusercontent.com/ironcamel/10223348/raw/ssl-heartbleed-check.pl | perl
@miyagawa
miyagawa / resque.pl
Created November 3, 2009 20:27
Resque client in Perl
package Resque;
use Any::Moose;
use Redis;
use JSON;
has server => (is => 'rw', isa => 'Str', default => 'localhost:6379');
has redis => (is => 'rw', isa => 'Redis', lazy_build => 1);
sub _build_redis {
my $self = shift;
@ironcamel
ironcamel / freenode.yml
Created March 29, 2011 22:14
IRC bot that notifies via libnotify popups and festival text-to-speech converter
conn_info:
server: irc.freenode.net
port: 6667
channels:
- '#foo'
- '#bar'
nick: foobot
username: foobot
name: defender of the universe
ignore_list:
@throughnothing
throughnothing / README.md
Last active September 25, 2015 12:18
Setup my dotfiles on a new box

Use

curl throughnothing.com/dotfiles.sh | bash
bash <(curl throughnothing.com/dotfiles.sh)

To use with a specific branch:

curl throughnothing.com/dotfiles.sh | bash -s BRANCH 

bash <(curl throughnothing.com/dotfiles.sh) BRANCH

@ironcamel
ironcamel / p
Created September 25, 2011 02:12 — forked from mfontani/raptor.sh
steroids for your perl one-liners.
#!/usr/bin/env perl
# Based on Randy Stauner's http://blogs.perl.org/users/randy_stauner/2011/06/exploratory-one-liners-with-less-typing.html
# and Marco Fontani's https://gist.github.com/1042504.
# To install all dependencies:
# sudo cpanm File::Slurp JSON::XS Data::Dump YAML::XS utf8::all Class::Autouse
# Installation:
# copy this file to ~/bin/p
# Example usage:
# p 'dd [File::Spec->path]' # dynamically load arbitrary modules
# p -pe 's/foo/bar/' foo.txt # use your favorite options like -lane
$ twiggy -l :3000 twitter.psgi
use warnings;
use Data::Dumper;
use DMEApiClient;
use App::Rad;
App::Rad->run();
my $client = DMEApiClient->new(
base_url => 'http://api.dnsmadeeasy.com/V1.2/domains/ctsandbox.com'
@throughnothing
throughnothing / Readme.md
Created April 17, 2012 04:41
Compile Hogan Templates in Pure Perl

Hulk.pl

Compile mustache templates in pure perl using JE.

Usage

$ hulk.pl *.mustache > templates.js

@miyagawa
miyagawa / gist:3131370
Created July 17, 2012 19:15
Heroku deployment with cpanfile
➜ heroku-hello git:(master) cat app.psgi
require 'app.pl';
➜ heroku-hello git:(master) cat app.pl
use Mojolicious::Lite;
get '/' => sub {
my $self = shift;
$self->render(text => "Hello Heroku");
};
@mago0
mago0 / matt_gpg.pub
Created July 21, 2012 00:22
GPG Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (Darwin)
mQENBFAEiqQBCADC5rWMZsqona9ThWYMgfWSqea5T+Yg7BnSPUqGlfepPfWO5pVr
n+P0hjRZ2nUTv+Wg1gRcvw+7y3Bx4jmPiA7QjvF7sNWapl+/Wx0k40qyIX4trtKv
eqDowVVpF5IwlKkk1sOw78gl8/aKJps8V1p/YcShkAEVCKL0Ljc5nRQGxCutVXJC
BVtTrAO2D0grT+KxgzP5GQNXjARUr5cqgKGYn3bkSHLfZR64oKIiqat9qF+cmd2Q
Qv4fsdqAkGzHlD40XOAVHMNW4Q/CFKOKzrTq79KnMbose5taScxae0Wb1onAS0QP
TAdMNLi5b1t67lp/YWqesZ+SQWquM5B9T6f5ABEBAAG0Ik1hdHQgV2lsbGlhbXMg
PG1hdHRAY3Jvd2R0aWx0LmNvbT6JAT4EEwECACgFAlAEiqQCGwMFCV38DwAGCwkI