Skip to content

Instantly share code, notes, and snippets.

View jheidt's full-sized avatar
💭
:shipit: 👍

Jake jheidt

💭
:shipit: 👍
View GitHub Profile
@jheidt
jheidt / formatsql.ps1
Created April 5, 2013 16:49
Updated version of Arvind Shyamsundar's 'pretty print sql' script. Accepts strings or files from the pipeline and writes to pipeline output.
<#
.SYNOPSIS
'Pretty print' a given T-SQL script
.DESCRIPTION
This script will format T-SQL scripts
.NOTES
Author : Arvind Shyamsundar (arvindsh@microsoft.com)
@jheidt
jheidt / wkb.rb
Last active December 16, 2015 02:39
Messing around with a ruby Well-Known-Binary converter.
module WellKnownBinary
require 'bindata'
TYPE_ID = {
:point => 1,
:linestring => 2,
:polygon => 3,
:multipoint => 4,
:multilinestring => 5,
@jheidt
jheidt / local.conf
Created July 16, 2013 15:17
Fontconfig local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
save this file as /etc/fonts/local.conf
-->
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
#!/usr/bin/env ruby
require 'uri'
require 'yajl'
require 'json'
require 'json-schema'
require 'net/http'
require 'digest/sha1'
s3_data_transfer_schema = {
@jheidt
jheidt / add-pidgin-smiley.sh
Last active August 29, 2015 14:01
Create a pidgin smily from an image file
#!/bin/bash
#- add-pidgin-smily 0.1
#- Copyright (C) 2014 Jake Heidt admin@jheidt.com
##
##
## :D :D :D CREATES PIDGIN SMILIES :D :D :D
##
##

Keybase proof

I hereby claim:

  • I am jheidt on github.
  • I am jheidt (https://keybase.io/jheidt) on keybase.
  • I have a public key whose fingerprint is D518 8218 5C46 1CAA 36FA BAFC 8A61 ED5E 42AA 80C6

To claim this, I am signing this object:

@jheidt
jheidt / Preferences.sublime-settings
Last active August 29, 2015 14:06
jheidt's sublime text 3 user preferences
{
"auto_complete": true,
"auto_find_in_selection": true,
"auto_match_enabled": false,
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"colored_folder_glyphs": true,
@jheidt
jheidt / CDH5.sh
Created September 19, 2014 17:40
configures cloudera CDH5.1.0 for use on a standalone development machine
# ===================================================
# CLOUDERA 5.1.0
# ===================================================
declare CDH_SUFFIX=cdh5.1.0
declare CDH_HOME=/opt/${CDH_SUFFIX}
declare AVRO_DIR_NAME=avro-1.7.5-${CDH_SUFFIX}
declare DATAFU_DIR_NAME=datafu-1.1.0
declare HADOOP_DIR_NAME=hadoop-2.3.0-${CDH_SUFFIX}
@jheidt
jheidt / .pryrc
Last active April 8, 2020 07:27
jheidt's ~/.pryrc
# -*- encoding: utf-8 -*-
#
# jheidt's kickass pry config
#
Pry.editor = proc { |file, line| "/usr/bin/subl #{file} +#{line}" }
Pry.config.theme = 'tomorrow'
Pry.config.ls.heading_color = :white
@jheidt
jheidt / zsh-lovers
Last active August 30, 2022 03:14
zsh-lovers manpage - great list of zsh examples
ZSH-LOVERS(1) ZSH-LOVERS(1)
NAME
zsh-lovers - tips, tricks and examples for the Z shell
SYNOPSIS
Just read it. ;-)