Skip to content

Instantly share code, notes, and snippets.

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

Will Leinweber will

🆒
ه҈ͣفͤ҈ͥ҉ͦ҈ͧ҉ͨ҈ͩ҉ͪ҈ͫ҉ͬ҈ͭ҉ͮ҈ͯ҉ͨ҈ͬ҉ͧ҈ͣ҉ͨ҈ͧ҉ͯ҈ͮ҉ͭ҈ͤ҉ͦ҈ͥ҉ͧ҈ͩ҉ͭ҈ͨ҉ͣ҈ͪ҉ͧ҈ͭ҉ͩ҈ͤ҉ͮ҈ͯ҉ͬ҈
View GitHub Profile
@will
will / spectre.c
Last active January 5, 2018 22:58 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pthread.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@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
@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 / 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
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 / ajax_setup.coffee
Created September 1, 2012 22:13 — forked from brandur/ajax_setup.coffee
Ajax Setup
$.ajaxSetup
headers:
Authorization: "Basic #{toBase64(":evenmoresupersecretpassword")}"
@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)
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')
module AuthlogicModel
def self.included(model)
model.class_eval do
extend ClassMethods
include InstanceMethods
include ProtectedAttributes
field :username
field :email
field :crypted_password