Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Smithline Neil-Smithline

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am neil-smithline on github.

  • I am neil_smithline (https://keybase.io/neil_smithline) on keybase.

  • I have a public key ASAgtn6SNMy_gzyIMqPEQI--8JSIAR6Us3PV7FyL02_tIQo

@Neil-Smithline
Neil-Smithline / public.key
Last active Dec 15, 2019
Post public GPG key
View public.key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF31mVUBEADzdehy8VqhYX2RLXvsmWtfssTGhN6AXgTELcJZwFpprS12C4nQ
LllesPQ83/0ZynuMNWfhjrmj9DhRpohkXGNMnI29G2vocexQLOk792Wo+rCBRi40
qR5EmLXwcQCA1qc/BPNAm3BG8n+Y5tlDIQPX55isgoJUEic5B/8pbO9iQqX/uSWh
TPpPnvZoHlGDf8IjBYlDgX3Prn+LqIQu6+zUrm3rlZPpG6xblew14k5VhRnnOuZ0
CR4W7qajWs3sA3a9mcNksSyFlBgZKjHjX/6D0b2fF2a5r0I3tfhvKSzAXql/qQXn
ey6FDqoMugNYYtSL40TQR9fQrsjWmK3f796x3HAy6Smh5dgm6q6LbAuN6YjBCJ0v
PHnETVWGfuNSBOvbdCb5TZWliGP0FtZmDWKZCmxpBR2vL4MtgwR8F1zLQzXBwj7U
W9RehN1enSSPGH5JZtVxfEgTHdUIvgrNdlH1EuecGK5iWzBFiQWtJhOq83rj1ATI
@Neil-Smithline
Neil-Smithline / octo-sitemap-merge.sh
Created Sep 16, 2012
Octopress 2.0 Sitemap Merger
View octo-sitemap-merge.sh
#!/bin/sh
HEADER=$(cat <<EOF
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
EOF)
TRAILER='</urlset>'
echo "$HEADER"
@Neil-Smithline
Neil-Smithline / org-ibuffer.el
Created Jul 17, 2012
IBuffer for Org Mode Files
View org-ibuffer.el
;;; Create and display an `ibuffer' showing only `org-mode' files.
;;;
;;; I have bound this to "\C-cb" using:
;;; (global-set-key "\C-cb" #'org-ibuffer)
;;;
;;; Now "\C-x\C-b" creates a generic `ibuffer' and "\C-cb"
;;; creates an `org-mode' `ibuffer'.
(require 'ibuffer)
@Neil-Smithline
Neil-Smithline / bitlbee.sh
Created May 29, 2012
Quickie /etc/init.d script to get a daemon running.
View bitlbee.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: bitlbee
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Short-Description: Run Bitlbee IRC server/IM gateway.
### END INIT INFO
View gist_replace_title_with_filename.user.js
// ==UserScript==
// @name gist: replace title with filename
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @exclude http://gist.github.com/gists
// @exclude https://gist.github.com/gists
// @require https://raw.github.com/gist/3242/
// ==/UserScript==
View gist_replace_title_with_filename.user.js
// ==UserScript==
// @name gist: replace title with filename
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @exclude http://gist.github.com/gists
// @exclude https://gist.github.com/gists
// @require https://gist.github.com/3242.txt
// ==/UserScript==
@Neil-Smithline
Neil-Smithline / org-export-dynamic-tags.el
Created May 20, 2012
Emacs Org-Mode Dyvamic Export By Tags
View org-export-dynamic-tags.el
(defcustom org-export-dynmaic-tags '("blog")
"Select tags to export with `org-export-by-tag'."
:group 'org-export-html
:link '(function-link org-export-by-dynamic-tags)
:type '(repeat (string :tag "Tag Name")))
(defun org-export-by-dynamic-tags (&optional arg)
"Export topics in a project by tag, ignoring `org-export-select-tags'.
Call `org-export' with `org-export-select-tags' temporarily set
@Neil-Smithline
Neil-Smithline / idletime.sh
Created Mar 18, 2012
Mac OS X Idle Time Shell Script
View idletime.sh
#!/bin/sh
# Get MacOSX idletime. Shamelessly stolen from http://bit.ly/yVhc5H
/usr/sbin/ioreg -c IOHIDSystem | /usr/bin/awk '/HIDIdleTime/ {print int($NF/1000000000); exit}'