Skip to content

Instantly share code, notes, and snippets.

@johnhampton
johnhampton / hack-nerd-font-mono.css
Last active August 15, 2019 03:05
Blink Font CSS
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack Nerd Font Mono';
src: url('https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete%20Mono.ttf') format('truetype');
font-weight: 400;
#!/bin/bash
set -e
if [[ -z $NODEJS_VERSION ]]; then
echo "You must set the NODEJS_VERSION environment variable." 1>&2
fi
mkdir -p /scratch/hudson/nodejs
ARCH=`uname -m`
@johnhampton
johnhampton / Show Public IP Address.scpt
Created September 2, 2010 21:48
LaunchBar action to display the public IP address.
property WebService : "http://www.whatismyip.com/automation/n09230945.asp"
set response to do shell script "/usr/bin/curl " & WebService
-- uncomment to copy the ip address to the clipboard
-- set the clipboard to response
tell application "LaunchBar"
display in large type response
tell application "System Events" to if exists process "Adium" then
tell application "Adium"
set pomodoro to the first status where title is "Pomodoro"
set status message of pomodoro to "I'll respond in $time minutes"
set autoreply of pomodoro to "I'll respond in $time minutes"
end tell
end if
@johnhampton
johnhampton / ec2_client.rb
Created April 29, 2010 21:33 — forked from jtimberman/ec2_client.rb
generate user_data.json with knife, launch instance with it and magic!
# Author:: Adam Jacob <adam@opscode.com>
# Author:: Joshua Timberman <joshua@opscode.com>
#
# Copyright 2009-2010, Opscode, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
We couldn’t find that file to show.