Skip to content

Instantly share code, notes, and snippets.

@tenderlove
tenderlove / mt_complete.rb
Last active December 11, 2020 19:56
tab completion for minitest tests
#!/usr/bin/env ruby --disable-gems
# Tab completion for minitest tests.
#
# INSTALLATION:
#
# 1. Put this file in a directory in your $PATH. Make sure it's executable
# 2. Run this:
#
# $ complete -o bashdefault -f -C /path/to/this/file.rb ruby
@mhfs
mhfs / gist:12272814bf8a3145435a
Last active March 3, 2016 00:06
How to stream, uncompress and decode a CSV file straight from a remote URL.
package main
import (
"compress/gzip"
"encoding/csv"
"fmt"
"io"
"net/http"
"os"
)
@tsl0922
tsl0922 / .tmux.conf
Last active November 18, 2024 10:31
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."