Skip to content

Instantly share code, notes, and snippets.

View jjasonclark's full-sized avatar
🏠
Working from home

Jason Clark jjasonclark

🏠
Working from home
View GitHub Profile
@jjasonclark
jjasonclark / generate-rails-gem-tags
Created July 12, 2012 16:29 — forked from AndrewRadev/generate-rails-gem-tags
Create ctags for all required gems
#! /usr/bin/env ruby
# Generate all tags for all gems included by bundler in gems.tags
#
# Basically does the same as "bundle show gemname", except for all gems.
# Interestingly enough, "bundle show" without any arguments falls back to
# "bundle list", otherwise the whole thing could have been a bash one-liner.
require 'bundler'
@jjasonclark
jjasonclark / tclient.rb
Created August 1, 2013 03:50 — forked from jstorimer/tclient.rb
These scripts were the result of the "Faster Rails test runs...with Unix!" screencast at https://www.youtube.com/watch?v=RSehcT4MnRM.
#!/usr/bin/env ruby
require 'socket'
test_file = ARGV[0]
socket = UNIXSocket.new('testing.sock')
socket.write(test_file)
socket.close_write
@jjasonclark
jjasonclark / Dockerfile
Created November 29, 2017 02:34 — forked from enko/Dockerfile
docker and colors reproduction
FROM node:6.6
# add node modules folder to path and set global node path
ENV NODE_PATH /opt/node_modules
ENV PATH /opt/node_modules/.bin:$PATH
# copy dependency file for npm into the container --> everytime (to update possible dependencies)
ADD package.json /opt/package.json
# rm old node_modules