Skip to content

Instantly share code, notes, and snippets.

View will's full-sized avatar
🆒
ه҈ͣفͤ҈ͥ҉ͦ҈ͧ҉ͨ҈ͩ҉ͪ҈ͫ҉ͬ҈ͭ҉ͮ҈ͯ҉ͨ҈ͬ҉ͧ҈ͣ҉ͨ҈ͧ҉ͯ҈ͮ҉ͭ҈ͤ҉ͦ҈ͥ҉ͧ҈ͩ҉ͭ҈ͨ҉ͣ҈ͪ҉ͧ҈ͭ҉ͩ҈ͤ҉ͮ҈ͯ҉ͬ҈

Will Leinweber will

🆒
ه҈ͣفͤ҈ͥ҉ͦ҈ͧ҉ͨ҈ͩ҉ͪ҈ͫ҉ͬ҈ͭ҉ͮ҈ͯ҉ͨ҈ͬ҉ͧ҈ͣ҉ͨ҈ͧ҉ͯ҈ͮ҉ͭ҈ͤ҉ͦ҈ͥ҉ͧ҈ͩ҉ͭ҈ͨ҉ͣ҈ͪ҉ͧ҈ͭ҉ͩ҈ͤ҉ͮ҈ͯ҉ͬ҈
View GitHub Profile
@will
will / response.txt
Created February 20, 2009 22:21 — forked from jseifer/gist:67727
On Feb 20, 2009, at 4:24 PM, "Olusegun A.A" <xxxxxx@gmail.com> wrote:
** CRAIGSLIST ADVISORY --- AVOID SCAMS BY DEALING LOCALLY
** Avoid: wiring money, cross-border deals, work-at-home
** Beware: cashier checks, money orders, escrow, shipping
** More Info: http://www.craigslist.org/about/scams.html
Hello,
Do you still have this item available for sale at the moment? Get back asap.
@will
will / gist:217655
Created October 24, 2009 18:19 — forked from jseifer/gist:217637
#! /usr/bin/env ruby
#
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com
#
puts `whois #{ARGV[0]}` =~ /No match for \"#{ARGV[0]}\"/mi ? "Hell No" : "Fuck Yes"
module AuthlogicModel
def self.included(model)
model.class_eval do
extend ClassMethods
include InstanceMethods
include ProtectedAttributes
field :username
field :email
field :crypted_password
require 'rubygems'
if ARGV[0] == 'old'
puts 'beta7'
gem 'couchrest_model', '1.0.0.beta7'
require 'couchrest_model'
else
puts 'head'
$:.unshift 'lib'
require File.join(File.dirname(__FILE__),'lib', 'couchrest_model')
@will
will / amex data.sql
Created August 18, 2011 00:23 — forked from fdr/experiment.sql
plv8 experiments and microbenchmarks
will=# \d amex
Table "public.amex"
Column | Type | Modifiers
--------+-------------------+---------------------------------------------------
id | integer | not null default nextval('amex_id_seq'::regclass)
ticker | character varying |
date | date |
data | text |
Indexes:
"amex_pkey" PRIMARY KEY, btree (id)
@will
will / ajax_setup.coffee
Created September 1, 2012 22:13 — forked from brandur/ajax_setup.coffee
Ajax Setup
$.ajaxSetup
headers:
Authorization: "Basic #{toBase64(":evenmoresupersecretpassword")}"
module Kernel
alias :old_puts :puts
def puts(val)
old_puts val
split = caller.first.split(':')
yolo(split[0], split[1].to_i)
end
private
def yolo(filename, line_number)
@will
will / dsort.cr
Last active August 29, 2015 14:25 — forked from glurp/dsort.cr
final comparaison between libc.qsort, qsort and dsort in crystal
################################ Crystall scripts
def chrono(text)
s=Time.now
yield
e=Time.now
d=(e.to_f-s.to_f)*1000
if d>1
puts "#{text} : #{d} ms"
else
@will
will / README.md
Last active March 1, 2016 22:30 — forked from raphaelcastaneda/README.md
Batch upload pidgin emote packs to slack

#Pidgin emote pack uploader for Slack Downloaded pidgin icon packs can be uploaded (one at a time) to Slack by posting the form. Note that this does not (yet) handle name conflicts with existing emotes.

#Usage install the requirements

pip install -r requirements.txt

Extract your icon pack into the working directory, under a new folder called "emote_files" Set the following environment variables:

@will
will / 0_configuration.md
Last active March 16, 2016 01:13 — forked from marcocitus/create_table.sql
Scripts for loading Github events into Citus

Server

I2 Eight Extra Large i2.8xlarge 244.0 GB 104 cpu-units 32 cores 6400 GB (8 * 800 GB SSD) 64-bit 10 Gigabit

Disk config

zpool create -f -o ashift=12 -O compression=lz4 -O exec=off -O recordsize=1024k wal xvdf
zpool create -f -o ashift=12 -O compression=lz4 -O exec=off -O recordsize=8k -O logbias=throughput dat xvdg xvdh xvdi xvdj xvdk xvdl xvdm