Skip to content

Instantly share code, notes, and snippets.

@Jacob640
Jacob640 / Update Expired Podcasts.applescript
Last active December 16, 2015 05:09
Update Expired iTunes Podcasts fork
(*This fork of Doug Adams's script will hide iTunes if it not running when the script is called and
fixes the issue wherby podcasts not set to automatically update were nonetheless updated anyway *)
(*
"Update Expired Podcasts" for iTunes
written by Doug Adams
dougadams@mac.com
v2.2 dec 12, 2011
-- exits if iTunes isn't running when launched (perhaps handy when running via launchd or other automatic launching scheme)
@Jacob640
Jacob640 / ruby_pkcs7_ec_bug.rb
Created March 25, 2013 18:34
This script demonstrates a bug in the Ruby 2.0.0 and earlier pkcs7 implementation
# N.B. the keys used below were generated using OpenSSL for the
# purposes of this demostration.
def test_PKCS7_with_safe_keys
key = OpenSSL::PKey::EC.new('-----BEGIN EC PARAMETERS-----
BgUrgQQAIw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
@Jacob640
Jacob640 / uk.macintosh.vmware.kbd
Last active December 15, 2015 06:29
UK Macintosh keyboard mapping for FreeBSD
# This file implements a UK Macintosh key mapping in FreeBSD and can be placed in
# /usr/share/syscons/keymaps/
# Also includes a patch for proper functioning of the command key under Vmware Fusion.
#
# Tested under FreeBSD 9.1 using Vmware Fusion 4
# Keycodes 105 and 106 have been changed to nop for compatibility with Vmware Fusion
#
# This file is based on the FreeBSD 9.1 uk.iso.kbd keymap and carries the same license
# included below.
#