This is an OS X-centric configuration.
The idea here is to use environment variables, loaded via aliases to mutt, to control which account you're loading. Years ago I had all of my accounts configured to be accessible from a single mutt
#!/usr/bin/env perl | |
use String::MkPasswd qw/mkpasswd/; | |
print mkpasswd( | |
-length => 12, | |
-minnum => 4, | |
-minlower => 3, | |
-minupper => 4, | |
-minspecial => 1, | |
-distribute => 0, |
#!/usr/bin/env per | |
use strict; | |
use warnings; | |
use DBI; | |
my $username = 'USERNAME'; | |
my $password = 'PASSWORD'; | |
my $dsn = 'dbi:mysql:DATABASE_NAME;host=HOSTNAME;port=3306'; | |
my $query = qq{ |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Net::DNS; | |
use Net::Abuse::Utils qw( :all ); | |
my $input = shift or die "Domain must be specified at the command line!"; | |
my $res = Net::DNS::Resolver->new; | |
my $query = $res->search("$input"); |
#!/usr/bin/env ruby | |
require 'json' | |
lines = DATA.readlines | |
stats = []sent = received = loss = time = minimum = average = maximum = deviation = 0files = Dir.glob "data/*.log"files.each do |log| | |
lines = File.open(log).readlines | |
log =~ /ping-(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/ |
require 'mechanize' | |
module Scraper | |
class Tumblr | |
attr_accessor :fake_browser, :results | |
def initialize url | |
@fake_browser = Mechanize.new { |browser| |
#!/bin/bash | |
function make_image_dir () { | |
TARGET_DIR=$1 | |
if [ ! -d "${TARGET_DIR}" ]; then | |
mkdir "${TARGET_DIR}" | |
fi | |
} | |
function ignore_image_dir () { |
This is an OS X-centric configuration.
The idea here is to use environment variables, loaded via aliases to mutt, to control which account you're loading. Years ago I had all of my accounts configured to be accessible from a single mutt
POST http://crystalheadvodka.com/site/where_map_ajax 404 (Not Found) jquery.min.js:140 | |
c.extend.ajax jquery.min.js:140 | |
onsubmit |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
python -m SimpleHTTPServer 8000
I hereby claim:
To claim this, I am signing this object: