Skip to content

Instantly share code, notes, and snippets.

View jtemplet's full-sized avatar

Jason Templeton jtemplet

View GitHub Profile
@jtemplet
jtemplet / gist:c95c5c7b6df4d41f72ad
Created January 13, 2016 02:32
Use redis-cli to write key to file
redis-cli -h <redis-host> -n <redis-db> --raw hgetall <redis-hash-name> > output.txt
@jtemplet
jtemplet / gist:d11558c86dc3ba8a3141
Last active April 25, 2017 22:54
switching between users and registries for npm
$> npm get registry
https://registry.npmjs.org/
$> npm adduser
Username: jtemplet
Password: <password>
Email: <email>
$> npm login
Username: jtemplet
@jtemplet
jtemplet / post-checkout
Created March 26, 2012 05:41
post-checkout hook to 'start' a pivotal story
#!/usr/bin/env ruby
require 'rubygems'
require 'git'
require 'nokogiri'
def get_git_config(git_base)
config_vals = Hash.new
token = git_base.config['pivotal.api-token']
proj_id = git_base.config['pivotal.project-id']
@jtemplet
jtemplet / SeleniumTest.java
Created March 12, 2011 01:43
Selenium Basics
import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;
import org.openqa.selenium.internal.seleniumemulation.GetHtmlSource;