Skip to content

Instantly share code, notes, and snippets.

View Neil-Smithline's full-sized avatar

Neil Smithline Neil-Smithline

View GitHub Profile
@Neil-Smithline
Neil-Smithline / keybase.md
Created September 11, 2019 12:29
Keybase id

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 December 15, 2019 02:38
Post public GPG 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 September 16, 2012 22:42
Octopress 2.0 Sitemap Merger
#!/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 July 17, 2012 01:07
IBuffer for Org Mode Files
;;; 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 00:53
Quickie /etc/init.d script to get a daemon running.
#! /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
// ==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==
// ==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 21:45
Emacs Org-Mode Dyvamic Export By Tags
(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 March 18, 2012 15:33
Mac OS X Idle Time Shell Script
#!/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}'