Skip to content

Instantly share code, notes, and snippets.

@MicahElliott
MicahElliott / zbell-long-cmd.zsh
Last active Apr 29, 2021
Sound a bell when long-running commands complete
View zbell-long-cmd.zsh
# Original: https://gist.github.com/oknowton/8346801
# 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
subfuzion / curl.md
Last active May 14, 2021
curl POST examples
View curl.md

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
parmentf / GitCommitEmoji.md
Last active May 14, 2021
Git Commit message Emoji
View GitCommitEmoji.md
@MicahElliott
MicahElliott / dict-search-arch.md
Created Jul 10, 2013
Set up local dictionary search on ArchLinux
View dict-search-arch.md

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
jkresner / Procfile
Created Apr 13, 2013
Deploy brunch to heroku
View Procfile
web: ./node_modules/.bin/coffee app.coffee
@jrmoran
jrmoran / controllers.coffee
Created Nov 28, 2012
AngularJS Testing Controllers with Testacular & Testem
View controllers.coffee
# = 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
MicahElliott / arch-augment-vim-for-python.md
Created Jul 4, 2012
Configure vim in arch linux for python runtime support
View arch-augment-vim-for-python.md

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
srpouyet / nginx.conf
Last active Aug 5, 2018
Nginx Upstart script (Ubuntu 12.04)
View nginx.conf
### Nginx upstart script
### source: http://serverfault.com/a/391737/70451
### /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
MicahElliott / rbenv-howto.md
Created Apr 17, 2012
Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler
View rbenv-howto.md

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
biovisualize / index.html
Created Oct 6, 2011
Inkscape d3 tutorial
View index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<title>D3-Inkscscape tutorial</title>
</head>
<body>
<div id="viz"></div>
<a href="#" id="download">Download</a>
<script type="text/javascript">