Skip to content

Instantly share code, notes, and snippets.

@emory
emory / generator_scss.rb
Created August 11, 2012 16:54 — forked from parkr/generator_scss.rb
Jekyll Plugin to output SCSS without requiring the "---" YAML Front Matter
#
# Jekyll Generator for SCSS
#
# (File paths in this description relative to jekyll project root directory)
# Place this file in ./_plugins
# Place .scss files in ./_scss
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
# Config file placed in ./_sass/config.rb
#
` #---TEST-IP-Addresses`
` while ($body =~ /X-IP-Addresses\:(.*)\n/gi){`
` my $ip = $1;`
` ($id,$msg) = $cf->LoadByNameAndQueue (Name=>'TEST-IP-Addresses', Queue=>$queue);`
` ($id,$msg) = $Ticket->AddCustomFieldValue (Field => $cf, Value =>$ip);`
` }`
#---TEST-IP-Addresses
while ($body =~ /X-IP-Addresses\:(.*)\n/gi){
my $ip = $1;
($id,$msg) = $cf->LoadByNameAndQueue (Name=>'TEST-IP-Addresses', Queue=>$queue);
($id,$msg) = $Ticket->AddCustomFieldValue (Field => $cf, Value =>$ip);
}
@emory
emory / ExportThingsToTaskPaper.scpt
Created October 19, 2012 21:52 — forked from joe-pindell/ExportThingsToTaskPaper.scpt
An Applescript to export from Things to TaskPaper
set thePath to (path to desktop as Unicode text) & "ThingsToDo.txt"
set thingsToDoFile to (open for access file thePath with write permission)
set eof of thingsToDoFile to 0
set cr to ASCII character 10
tell application "Things"
-- Export to-dos from Inbox
write "Inbox:" & return to thingsToDoFile as «class utf8»
repeat with td in to dos of list "Inbox"
#!/usr/bin/ruby
# WebExcursions, a script for gathering new Pinboard links with a certain tag
# and generating Markdown/Jekyll posts when enough are collected.
# Brett Terpstra 2013
#
# -f to force writing out current bookmarks to file regardless of count
%w[fileutils set net/https zlib rexml/document time base64 uri cgi stringio].each do |filename|
require filename
end
@emory
emory / gist:6678586
Created September 23, 2013 23:51
watch me spray logs with the greatest of ease
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - OnBrowseMetadata for 'ce1e6c101aae79d6815b' with filter '@id,upnp:class,res,res@protocolInfo,res@av:authenticationUri,res@size,dc:title,upnp:albumArtURI,res@dlna:ifoFileURI,res@protection,res@bitrate,res@duration,res@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@resolution,res@colorDepth,dc:date,av:dateTime,upnp:artist,upnp:album,upnp:genre,dc:contributer,upnp:storageFree,upnp:storageUsed,upnp:originalTrackNumber,dc:publisher,dc:language,dc:region,dc:description,upnp:toc,@childCount,upnp:albumArtURI@dlna:profileID,res@dlna:cleartextSize' and sort '', paged as 0 + 1
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Mapped client to profile PlayStation 3 using header X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Mapped object ce1e6c101aae79d6815b to /library/sections/1/recentlyAdded part 0 on server http://127.0.0.1:32400/
Sep 23, 2013 18:20:18 [0x808170400] DEBUG - Down
#!/bin/bash
#
# This script backups an OS X system to an external volume, effectively
# cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for
# Linux. One could also use commercial tools like SuperDuper! or Carbon Copy
# Cloner. The latter website has an interesting list[5] on what files to
# exclude when cloning.
#
# Exclusions (from CCC[5]), see rsync_excludes_osx.txt
#

Hidden Configuration Options for OmniFocus 2 (OS X)

A commonly referenced collection of these was published in a post from May 22, 2014 by Jeroen Sangers, originally posted at braintags.com but currently [^1] available at https://jeroensangers.wordpress.com/2014/05/22/omnifocus-2-configuration/. This document hopes to be equally useful and may end up receiving updates. — @emory (github) @incumbent (twitter)

Secret Handshake URLs

All configuration options are activated by opening a special URL starting with omnifocus:///change-preference in a browser or other application that accepts a URI, which will open OmniFocus and apply the configuration option.

The URLs in the list are clickable to apply the configuration directly from this post.

@emory
emory / license-badges.md
Created October 7, 2016 15:38 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

❯ zfs list
NAME USED AVAIL REFER MOUNTPOINT
cloister 2.74T 790G 684K /cloister
cloister/Eyrie 2.14T 790G 756K /Eyrie
cloister/Eyrie/zemoryl 2.14T 790G 1.09T /Eyrie/zemoryl
cloister/Eyrie/zemoryl/Creating 738G 790G 14.2G /Eyrie/zemoryl/Creating
cloister/Eyrie/zemoryl/Creating/EmoryAV 117G 790G 117G /Eyrie/zemoryl/Creating/EmoryAV
cloister/Eyrie/zemoryl/Creating/EmoryPhotography 606G 790G 606G /Eyrie/zemoryl/Creating/EmoryPhotography
cloister/Eyrie/zemoryl/Developer 69.3G 790G 56.0G /Eyrie/zemoryl/Developer
cloister/Eyrie/zemoryl/Developer/Repositories 13.4G 790G 13.4G /Eyrie/zemoryl/Developer/Repositories