Skip to content

Instantly share code, notes, and snippets.

@bferg
bferg / HMS.pcalcfunctions
Created January 20, 2015 19:14
HMS-> and ->HMS time functions for PCalc based on the HP calculator functions of the same name. HMS format is HHH.MMSS, so e.g. 14.30305 in HMS converts to 14.5085 hours.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PCalc</key>
<dict>
<key>OS</key>
<string>iOS</string>
<key>UserFunctions</key>
<dict>

Keybase proof

I hereby claim:

  • I am bferg on github.
  • I am barryferg (https://keybase.io/barryferg) on keybase.
  • I have a public key whose fingerprint is 9E83 AF64 CEEA E4D9 F7DC C2A7 F0D9 E86A A961 A800

To claim this, I am signing this object:

@bferg
bferg / feedfolder.rb
Created July 1, 2013 03:00
Create Feed Wrangler "smart streams" matching your Google Reader folders. First import your feeds from Google Reader, export your Reader OPML file to the script directory, edit the script to include your user name and password, then run it. Note Feed Wrangler has since added this feature, so this script should no longer be necessary!
#!//usr/bin/env ruby
require 'bundler/setup'
require 'opml_saw'
require 'json'
require 'net/https'
require 'uri'
#
# Enter your email and password for feedwrangler below
#
@bferg
bferg / matchcert.sh
Created February 27, 2012 19:15
Compare SSL files' key references
#!/bin/bash
#
# Compare SSL files' key references.
# Take a list of SSL certificate (.crt), certificate sign request
# (.csr) and/or key (.key) files, extract the modulus and compare, and
# return a nonzero exit code if they do not match.
#
check=''
for name in "$@"; do
if [ "${name: -3}" == "crt" ]; then