Skip to content

Instantly share code, notes, and snippets.

Neil Smithline Neil-Smithline

Block or report user

Report or block Neil-Smithline

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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 May 22, 2018
Post public GPG key
View public.key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFsELbEBEADXU10A0PuTNFhCQZFoIXdxQAOJ/j1dsF3uhp3UA7FnZ6oUl1lQ
/46C4ef3bXqng6QYeLveqlOpzfHt3O8MimVTTzVSVUAso4OVz0pvYNg0afjahA7b
N8ZJ7sAP7+L6FQGlHR33LrBqHTmP+bL/rC8djpSySb7XNRAd8Gx1XjdtE0zHJMCk
C++JGnxrJqoHOIv8qU7YuEzIBK6/YGb3BqV+HBOrDmonLci0yGefRgPwhySsppPe
I6uYhNs/2UmWeFwiEZV8dpzHliqSb/Bo9DpfL7kRWOEdaJ0AEsUFmzKfJl9JaOUC
IkSBWZ+gCDXxeT83K5Rr2cpUxCzsCWiGhlZhPV+9+aGCG183cCXAQ1cmvyBMgLEB
8TyqFVaSpjS4J+HJNEAJnSbjdue7imoQvGm5xItpps4YTmx2blOZxZRwOZGQA63n
uckbFpCAqynP1k8HfHVluywTdpgJurCglkmizjw88vB4h36Aom5QYKRyp5mzc2Ix
@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}'
You can’t perform that action at this time.