Skip to content

Instantly share code, notes, and snippets.

View paulschreiber's full-sized avatar

Paul Schreiber paulschreiber

View GitHub Profile
From: <Info@GiftofLife.on.ca>
Subject: RE: TGLN Inquiry: Comment on Presumed Consent
Date: July 31, 2012 at 1:06:42 PM EDT
Cc: <Info@GiftofLife.on.ca>
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
paulschreiber / tail
Created August 22, 2014 17:45
syslog tailing
tail -f /var/log/syslog | sed 's/#012/\n\t/g'
@paulschreiber
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
do
wp import --authors=create foo.2014-08-04.$i.xml
done
@paulschreiber
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 1.2.3.4
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
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) {
console.log(v[1],v[2]);
}
});
@paulschreiber
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 = "https://api.wordpress.org/plugins/info/1.0/#{slug}.json?fields=-compatibility,-sections,-tags,-ratings,-short_description"
response = HTTParty.get(url, {request: :json})
@paulschreiber
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 = "https://api.wordpress.org/plugins/info/1.0/#{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 gmail.com>
# 09 June 2010
#
# Based on JPEG.rb by Remco van't Veer and imagesize by Keisuke Minami <keisuke@rccn.com>
# http://snippets.dzone.com/posts/show/805
# http://blog.remvee.net/2005/12/02/hoogte_en_breedte_van_een_JPEG (JPEG
# http://rubyforge.org/projects/imagesize/
class TIFF