Skip to content

Instantly share code, notes, and snippets.

View MicahElliott's full-sized avatar

Micah Elliott MicahElliott

View GitHub Profile
@MicahElliott
MicahElliott / file1.txt
Created June 27, 2013 08:01
Created via API
Demo
@MicahElliott
MicahElliott / dict-search-arch.md
Created July 10, 2013 00:42
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.

@MicahElliott
MicahElliott / i-get-around.md
Last active December 22, 2015 05:49
I Get Around (a Zsh overview of the chdir family)

I Get Around

We all know how to use cd (aka chdir). It’s probably the first command you ever learned. Or maybe that was ls. Anyway, when paired with some cousins (pushd, popd, dirs, cdpath, chpwd) it’s a lot more capable than you may have realized.

Useful Aliases

I find it tedious to type out all the family (“cd-fam” henceforth) of navigation commands in full length, so let’s start by slimming down – we’re

--- ruby-1.8.7-p374/ext/openssl/ossl_pkey_ec.c 2010-06-21 05:18:59.000000000 -0400
+++ ruby-1.8.7-p374/ext/openssl/ossl_pkey_ec.c.new 2014-02-09 19:21:24.635060547 -0500
@@ -757,8 +757,10 @@
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSL_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif

Keybase proof

I hereby claim:

  • I am MicahElliott on github.
  • I am micahelliott (https://keybase.io/micahelliott) on keybase.
  • I have a public key whose fingerprint is D75C 9C88 9D93 8635 14F3 95F2 C8D4 2FB3 299C 28F0

To claim this, I am signing this object:

@MicahElliott
MicahElliott / zbell-long-cmd.zsh
Last active December 22, 2021 23:41
Sound a bell when long-running commands complete
# 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