Skip to content

Instantly share code, notes, and snippets.

View paulschreiber's full-sized avatar

Paul Schreiber paulschreiber

View GitHub Profile
From: <>
Subject: RE: TGLN Inquiry: Comment on Presumed Consent
Date: July 31, 2012 at 1:06:42 PM EDT
Cc: <>
Dear Mr. Paul Schreiber:
Thank you for writing to Trillium Gift of Life Network, and for your comments on presumed consent.
Ontario continues to use the “opt-in” system (rather than presumed consent, or the opt-out system) because the people of Ontario do not currently support the implementation of presumed consent. When the Citizens’ Panel toured Ontario in 2007 and raised this issue with the public in towns and cities across the province, the public was evenly split on the issue, with the edge going to those who opposed presumed consent. As well, neither the Ontario Medical Association nor the Canadian Medical Association has spoken in favour of presumed consent.
paulschreiber / tail
Created August 22, 2014 17:45
syslog tailing
tail -f /var/log/syslog | sed 's/#012/\n\t/g'
paulschreiber / for-loops
Created August 22, 2014 17:45
bash for loops
for i in 001 002 003 004 005 006 007 008 009 010 011 012 013 015 016
wp import --authors=create foo.2014-08-04.$i.xml
paulschreiber / chow.tsv
Created October 22, 2014 14:16
Olivia Chow donors
Jacqueline Chan (Sharp)
Susan a'Court
Babak Abadi
Anthony Abballe
Nazar Abbas
Joy Abbasi
Joe Abbey
Susan Abbott
Marion Abel
Elizabeth Abraham
150122 16:02:49 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150122 16:02:49 [Note] Plugin 'FEDERATED' is disabled.
150122 16:02:49 InnoDB: The InnoDB memory heap is disabled
150122 16:02:49 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150122 16:02:49 InnoDB: Compressed tables use zlib
150122 16:02:49 InnoDB: Initializing buffer pool, size = 128.0M
150122 16:02:49 InnoDB: Completed initialization of buffer pool
150122 16:02:49 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
paulschreiber / zendesk.js
Created May 27, 2015 14:56
ZenDesk ticket summarizer
jQuery('script').each(function(index, element) {
v = jQuery(this).text().match("(?:Task|Problem|Question|Incident|Ticket) #([0-9]+).+\closed..(normal|high|low|urgent)");
if (v) {
paulschreiber / update-plugins.rb
Created July 10, 2015 04:23
WordPress plugin updater
#!/usr/bin/env ruby
require "FileUtils"
require "httparty"
require "tmpdir"
def update(slug)
url = "{slug}.json?fields=-compatibility,-sections,-tags,-ratings,-short_description"
response = HTTParty.get(url, {request: :json})
paulschreiber / wp-plugin.rb
Created July 11, 2015 13:54
Update WordPress plugin
#!/usr/bin/env ruby
require "fileutils"
require "httparty"
def update(slug)
url = "{slug}.json?fields=-compatibility,-sections,-tags,-ratings,-short_description"
response = HTTParty.get(url, {request: :json})
unless response["version"]
This file has been truncated, but you can view the full file.
Analysis of sampling node (pid 19042) every 1 millisecond
Process: node [19042]
Path: /usr/local/bin/node
Load Address: 0x100000000
Identifier: node
Version: ???
Code Type: X86-64
Parent Process: bash [18739]
Date/Time: 2015-08-17 22:50:43.145 -0400
# TIFF.rb
# by Paul Schreiber <paulschreiber at>
# 09 June 2010
# Based on JPEG.rb by Remco van't Veer and imagesize by Keisuke Minami <>
class TIFF