Skip to content

Instantly share code, notes, and snippets.

View ruby-ossl_pkey_ec.c.diff
--- 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
@MicahElliott
MicahElliott / gtasks2tiddly.sed
Created Sep 21, 2010
Convert GTasks semi-automatically into a weekly or monthly status report.
View gtasks2tiddly.sed
#! /bin/sed -f
# Convert GTasks semi-automatically into a weekly or monthly status
# report. This happens to convert into TiddlyWiki format, but it should
# be no harder to do markdown, moin, or mediawiki. This script is more
# about the idea, and some fun showing off how to invoke ‘sed’ from
# shebang, and using ‘xsel’. Tweak as you see fit!
#
# Why bother? Can’t be sure how long your completed tasks will be
# available, so it’s nice to keep a record of your own. Maybe your boss
@MicahElliott
MicahElliott / c-indent
Created Nov 28, 2010
A personal indentation config for C files, using ‘indent’.
View c-indent
#! /bin/bash
# A personal indentation config for C files, using ‘indent’.
#
# Every project should agree on and share one of these!
#
# Install ‘indent’: apt-get install indent
# See ‘indent(1)’ for the other 100 options to consider.
#
# Backups are funny. Using an explicit file here, since most careful
@MicahElliott
MicahElliott / find-bigdirs
Created Nov 29, 2010
Utilities for finding large or unwanted files/dirs.
View find-bigdirs
#! /bin/bash
# Find big dirs, minimally deep.
# Running in near-silent mode in case want to pipe output.
#
# Author: Micah Elliott <mde MicahElliott com>
#dt=$(date "+%Y%m%d")
#log="bigdirs.$dt.log"
log="$PWD/bigdirs.log"
@MicahElliott
MicahElliott / INSTALL.md
Last active Sep 24, 2015
Show concise system info on any architectrue/distro
View INSTALL.md

Installing to Arch Linux

Installation (packaging) is the main point of this tiny package. I wanted to use a tiny project to serve as an example of how to install directly from github (a gist!) to Arch Linux. Normally a package would go through an approval process to be put into AUR, but until your package is mature enough for that this is a clean and simple way to go.

User flow

@MicahElliott
MicahElliott / geodist.py
Created Nov 29, 2010
Use gmaps to parse and calculate distance between two points.
View geodist.py
#! /usr/bin/env python
""" Use gmaps to parse and calculate distance between two points.
"""
__author__ = 'Micah Elliott http://MicahElliott.com'
__version__ = '0.1'
### -------------------------------------------------------------------
@MicahElliott
MicahElliott / flac2mp3
Created Nov 29, 2010
FLAC-to-MP3 Mass Converter
View flac2mp3
#! /bin/bash
#
# flac2mp3 — Convert FLAC files to MP3.
#
# Author: Micah Elliott <mde MicahElliott com>
# Date: Feb 2008 (not sure if any util has obviated this)
#
# Many people store their music collections in FLAC format these days
# since it’s nice to have lossless compressed copies, and disks are
# cheap. But people also need to convert their FLAC collections into
@MicahElliott
MicahElliott / booklayout.py
Created Nov 29, 2010
Lay out a linearly paged book for bound printing.
View booklayout.py
#! /usr/bin/env python
""" Lay out a linearly paged book for bound printing.
Described in this post:
http://micahelliott.com/2008/12/from-e-book-to-real-book/
Additions to post:
* Firefox does not support the layout, so need to generate PDF.
* Dad laughs at my process.
@MicahElliott
MicahElliott / balance-dark.png
Created Nov 29, 2010
Zsh spanning bar prompt with “balanced” sides.
@MicahElliott
MicahElliott / adobe.vim
Created Nov 29, 2010
Vim “Adobe” colorscheme
View adobe.vim
" Vim “Adobe” colorscheme
"
" Maintainer: Micah Elliott <mde AT MicahElliott DOT com>
" Version: 0.3
" Info: Adobe theme, easy on eyes.
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Philosophy: See my blog article:
" http://micahelliott.com/2008/12/editor-color-scheme-philosophy
"