Skip to content

Instantly share code, notes, and snippets.

MicahElliott / zbell-long-cmd.zsh
Last active Apr 29, 2021
Sound a bell when long-running commands complete
View zbell-long-cmd.zsh
# Original:
# Add to zplug:
# zplug MicahElliott/97df9ca799e49c0fcc0a981bf021f813, from:gist, as:plugin, use:zbell-long-cmd.zsh
# brew install terminal-notifier
# only do this if we're in an interactive shell
[[ -o interactive ]] || return
subfuzion /
Last active May 14, 2021
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

parmentf /
Last active May 14, 2021
Git Commit message Emoji
MicahElliott /
Created Jul 10, 2013
Set up local dictionary search on ArchLinux

Install the dictionary.

% pacman -S words

Make it convenient.

% alias g='grep --color=always --perl-regexp'
% export dict=/usr/share/dict/american-english

Use it.

jkresner / Procfile
Created Apr 13, 2013
Deploy brunch to heroku
View Procfile
web: ./node_modules/.bin/coffee
jrmoran /
Created Nov 28, 2012
AngularJS Testing Controllers with Testacular & Testem
# = require '../components/jquery/jquery'
# = require '../components/angular-complete/angular'
Controllers = angular.module 'controllers', []
Controllers.controller 'PhoneListCtrl', ['$scope', ($scope)->
$scope.phones = [
{name: "Nexus S", snippet: "Fast just got faster with Nexus S."},
MicahElliott /
Created Jul 4, 2012
Configure vim in arch linux for python runtime support

Steps to upgrade vim in arch linux for python runtime support

Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.

More ABS info.

# Install and run abs (sync)
sudo pacman -S abs
srpouyet / nginx.conf
Last active Aug 5, 2018
Nginx Upstart script (Ubuntu 12.04)
View nginx.conf
### Nginx upstart script
### source:
### /etc/init/nginx.conf
description "nginx http daemon"
start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]
env DAEMON=/usr/local/sbin/nginx
MicahElliott /
Created Apr 17, 2012
Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
biovisualize / index.html
Created Oct 6, 2011
Inkscape d3 tutorial
View index.html
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
<title>D3-Inkscscape tutorial</title>
<div id="viz"></div>
<a href="#" id="download">Download</a>
<script type="text/javascript">