Skip to content

Instantly share code, notes, and snippets.

View tylersmalley's full-sized avatar

Tyler Smalley tylersmalley

  • Tailscale
  • Fox Island, WA
View GitHub Profile
@tylersmalley
tylersmalley / gist:753453
Created December 23, 2010 19:51
Create OSX LaunchAgent's for Memcached and Redis
We couldn’t find that file to show.
@tylersmalley
tylersmalley / vim.rb
Created July 25, 2012 01:25
vim +ruby on OSX
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :tag => 'v7-3-608'
version '7.3.608'
head 'https://vim.googlecode.com/hg/'
@tylersmalley
tylersmalley / gist:3445018
Created August 24, 2012 02:59 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
/*!
* Wizard: Easy paging through DOM objects
*
* @constructor
* @param {String} jQuery selector for page
*/
var Wizard = (function(selector){
/**
@tylersmalley
tylersmalley / config
Last active December 15, 2015 12:08
Pianobar config
# This is an example configuration file for pianobar. You may remove the # from
# lines you need and copy/move this file to ~/.config/pianobar/config
# See manpage for a description of the config keys
#
# User
user = YOUR_EMAIL
password = YOUR_PASSWORD
# Proxy (for those who are not living in the USA)
#control_proxy = http://127.0.0.1:9090/
@tylersmalley
tylersmalley / druuid.sql
Last active December 16, 2015 23:39
Druuid PostgreSQL support: https://github.com/recurly/druuid
CREATE OR REPLACE FUNCTION public.epoch_offset() RETURNS bigint AS $$
BEGIN
RETURN 135702720000; -- 2013-01-01 00:00:00
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION public.druuid(epoch bigint default NULL) RETURNS bigint AS $$
DECLARE
result bigint;
BEGIN
@tylersmalley
tylersmalley / bootstrap.sh
Last active November 13, 2018 18:12
Bootstrap's server with Kibana 4.3.3 using Elastic Cloud
#!/bin/bash
echo "Kibana Version ex: 4.4.2"
read version
echo "ElasticSearch Cloud URL:"
read url
echo "ElasticSearch Username:"
read username
@tylersmalley
tylersmalley / jmap_7647.bin
Last active May 5, 2016 20:38
/elastic/elasticsearch/issues/18144
This file has been truncated, but you can view the full file.