Skip to content

Instantly share code, notes, and snippets.

View jbfink's full-sized avatar
💭
we have statuses now? is this AOL?

John Fink jbfink

💭
we have statuses now? is this AOL?
View GitHub Profile
@jbfink
jbfink / AtoM Errors
Last active August 29, 2015 14:20
ES/AtoM misc
#
10s of listeners. Pull quotes from Twitter. Table thumping. Borrowed microphones. Why are people nice. Nobody learns things at conferences. Discomfort learning. Tappity tap laptops. Money money money. Dissemination. Stay out of that ballpark. Let's go to Sweden. New people need development. John doesn't speak for anyone on any issue. Hop on a train, go to Kingston. The Maritimes doesn't make any sense but sea captains. Your mandate and its non-shrinkage. Culture of sharing. John makes a dumb assessment. John makes another dumb assessment. John attempts to number U of T librarians. Critical analysis. John and Gillian discuss first conference presentations. Zotero, RSS and blogs. Random library school students. Who funds your conference. Anti-recycling. What is the sign of a healthy conference. Half brains going off half cocked. Is doing the same talk over and over dishonest. The important parts happen at the bar and in the hallway. The hallway conference is not for students. Twitter shows the way. Neither Gill
var tcpProxy = require('tcp-proxy');
var server = tcpProxy.createServer({
target: {
host: 'ssl1',
port: 636
}
});
server.listen(6367);
@jbfink
jbfink / lsl-mac.txt
Last active August 29, 2015 14:24 — forked from anonymous/lsl-mac.txt
(copy and pasted from link at https://careers.mcmaster.ca/psp/prepprd/EMPLOYEE/HRMS/c/HRS_HRAM.HRS_APP_SCHJOB.GBL?Page=HRS_APP_SCHJOB&Action=U&FOCUS=Applicant&SiteId=1001&customTab=MCM_STAFF_POS&IgnoreParamTempl=customTab -- duplicated here because you can't link directly to job ads in that system. :( )
Job Title
Learning Support Librarian
Job ID
4060
Worker #28990: starting unit #1190 (graphics_magick/processing)
Worker #28745: failed unit #1195 (graphics_magick/processing) in 283.102081 seconds
/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/action.rb:77:in ``'/usr/local/cloud-crowd/actions/graphics_magick.rb:25:in `run_step'/usr/local/cloud-crowd/actions/graphics_magick.rb:15:in `process'/usr/lib/ruby/1.8/fileutils.rb:1421:in `inject'/usr/local/cloud-crowd/actions/graphics_magick.rb:15:in `each'/usr/local/cloud-crowd/actions/graphics_magick.rb:15:in `inject'/usr/local/cloud-crowd/actions/graphics_magick.rb:15:in `process'/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/worker.rb:79:in `run_work_unit'/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/worker.rb:77:in `chdir'/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/worker.rb:77:in `run_work_unit'/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/worker.rb:101:in `run'/var/lib/gems/1.8/gems/cloud-crowd-0.5.0/lib/cloud_crowd/node.rb:60:in `POST /work'/var/lib/gem
#!/usr/bin/env ruby -rubygems
require 'restclient'
require 'json'
#note that the original trench.rb file has hundreds of TIFFs for the input; I've truncated this one.
RestClient.post('http://localhost:9173/jobs',
{:job => {
@jbfink
jbfink / bh.txt
Created September 24, 2015 15:38
traceroute to bad.horse (162.252.205.157), 30 hops max, 60 byte packets
1 VLAN100-Router3.Net.McMaster.CA (130.113.232.5) 0.713 ms 0.822 ms 0.912 ms
2 ml-SVI-Core.UTS.McMaster.CA (172.26.20.218) 0.297 ms 0.310 ms 0.313 ms
3 campus-border.Net.McMaster.CA (130.113.69.4) 0.541 ms 0.540 ms 0.526 ms
4 ORION-MCMASTER-RNE.DIST1-HMTN.IP.orion.on.ca (66.97.23.21) 1.152 ms 1.269 ms 1.127 ms
5 be125.p10-york.orion.on.ca (66.97.16.141) 3.249 ms 3.760 ms 3.747 ms
6 be201.gw01-toro.orion.on.ca (66.97.16.22) 3.366 ms 3.304 ms 3.171 ms
7 he.ip4.torontointernetxchange.net (206.108.34.112) 2.370 ms 2.383 ms 2.358 ms
8 100ge13-1.core1.chi1.he.net (184.105.80.5) 21.920 ms 21.916 ms 19.507 ms
9 100ge10-1.core1.msp1.he.net (184.105.223.178) 56.839 ms 57.029 ms 56.995 ms
class Dog
attr_accessor :ears, :legs, :nose, :smell, :name, :number
@@number = 0
@@names = []
@@dogs = []
def initialize(name)
@ears = 2
@legs = 4
@nose = 1
@smell = "Stinky"
@jbfink
jbfink / blink.pde
Created February 19, 2011 00:53
arduino blink code
@jbfink
jbfink / gist:953519
Created May 3, 2011 15:21
grep patterns for macids
file = File.read('list.txt')
file.scan(/\s[\S]{9}\s/)
array = file.scan(/\s[\S]{9}\s/)
array.each do |wtf|
# I cannot believe I did this....
# and it worked.
wtf.chop!.reverse!.chop!.reverse!
end
File.open('isolated.txt', 'a') do |write|
write.puts array