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 / gist:5673348
Created May 29, 2013 19:58
hadoop errors
13/05/29 15:56:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/05/29 15:56:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/05/29 15:56:03 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/05/29 15:56:04 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/05/29 15:56:05 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/05/29
@jbfink
jbfink / foreground.sh
Last active December 19, 2015 12:09
apache foreground.sh for use with supervisord
#!/bin/bash
read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT
source /etc/apache2/envvars
apache2 -D FOREGROUND
@jbfink
jbfink / gist:6125338
Created July 31, 2013 19:32
redmine Dockerfile build script
# Backing up current bugs instance for deploy in case of outage etc
FROM redmine-test
MAINTAINER John Fink <john.fink@gmail.com>
RUN apt-get update
RUN apt-get upgrade -y
ADD redmine.sql /redmine.sql
RUN /mysql-import.sh
@jbfink
jbfink / gist:6125341
Last active December 20, 2015 11:39
redmine Dockerfile build script
# Backing up current bugs instance for deploy in case of outage etc
FROM redmine-test
MAINTAINER John Fink <john.fink@gmail.com>
ADD redmine.sql /redmine.sql
RUN /mysql-import.sh
EXPOSE 3000
CMD ["/usr/local/bin/supervisord", "-n"]
@jbfink
jbfink / gist:6140663
Created August 2, 2013 15:14
UGLY SED CHAIN O' PIPES
cat wp-config-sample.php | sed 's/database_name_here/'$WORDPRESS_DB'/' | sed 's/username_here/'$WORDPRESS_DB'/' | sed 's/password_here/'$WORDPRESS_PASSWORD'/' | sed '/\x27AUTH_KEY\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27SECURE_AUTH_KEY\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27LOGGED_IN_KEY\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27NONCE_KEY\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27AUTH_SALT\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27SECURE_AUTH_SALT\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27LOGGED_IN_SALT\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/' | sed '/\x27NONCE_SALT\x27/s/put\ your\ unique\ phrase\ here/'`pwgen -c -n -1 65`'/'
@jbfink
jbfink / gist:6175838
Created August 7, 2013 16:47
HAMILTON RULEZ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbfink
jbfink / home DSL
Last active December 23, 2015 08:58
traceroute from mac to UofT, and also from my home to UofT for comparison
traceroute to www.utoronto.ca (128.100.132.238), 30 hops max, 60 byte packets
1 unknown (192.168.1.1) 0.783 ms 1.737 ms 2.122 ms
2 lo-100.lns02.tor.man.teksavvy.com.packetflow.ca (206.248.154.122) 48.914 ms 52.152 ms 53.949 ms
3 2150.ae1.bdr04.tor.man.teksavvy.com.packetflow.ca (69.196.136.164) 55.877 ms 58.215 ms 60.620 ms
4 ix-0-0-2-0.tcore1.TNK-Toronto.as6453.net (64.86.33.21) 87.354 ms 87.644 ms 88.113 ms
5 if-11-0-0-4.core4.TNK-Toronto.as6453.net (64.86.33.42) 246.687 ms 247.318 ms if-5-0-0-5.core4.TNK-Toronto.as6453.net (63.243.172.25) 248.012 ms
6 if-0-1-2-0.tcore1.CT8-Chicago.as6453.net (63.243.172.38) 91.323 ms 92.682 ms 92.672 ms
7 64.86.78.22 (64.86.78.22) 98.787 ms 61.712 ms 61.268 ms
8 be2006.mpd21.ord01.atlas.cogentco.com (154.54.5.17) 64.212 ms 67.028 ms 69.424 ms
9 be2079.ccr21.yyz02.atlas.cogentco.com (154.54.27.182) 85.968 ms 89.300 ms be2081.ccr21.yyz02.atlas.cogentco.com (154.54.42.10) 91.546 ms

Why Openness Matters: Creating slides and notes using nonproprietary software (lightning talk)

Session Abstract

Library workers have always recognized the importance of the free exchange of information, and have often championed open protocols. Why then do we persist in using proprietary tools like Microsoft Word and Powerpoint to document and share ideas? This session will talk about open data interchange formats and how you can use them in your day-to-day work.

Full Description

We talk a good game, but too often fail to back that up with our actions. How much can we lose, and how much have we lost already, by putting so much of our documentation and history into proprietary document formats? Why do we continue to depend on Microsoft Word, with its purposefully obfuscated format, or on Powerpoint, an unindexable mess? This session will do a bit of ranting, and then, thankfully, proceed to practical tips on creating and disseminating documentation in formats like Markdown and reveal.js.

@jbfink
jbfink / gist:7252843
Created October 31, 2013 16:37
some output from 0.6.5 docker -D -d
[debug] runtime.go:147 Container 73b8614cfd8b1f70ff396d32a9f8b3a5efd973aeed0ef62e494e0aa6b5541bed was supposed to be running be is not.
[debug] runtime.go:149 Restarting
[debug] container.go:1056 Migrating port mappings for container: 9000:80
[debug] network.go:321 Acquiring 9000
[debug] container.go:1096 Allocate port: 0.0.0.0:80/tcp->9000
panic: runtime error: index out of range
goroutine 1 [running]:
runtime.panic(0x8e42a0, 0x101ae17)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
@jbfink
jbfink / gist:7253039
Created October 31, 2013 16:51
docker -d -D -r=false crash #2
jbfink@soapy:~$ sudo /usr/bin/docker -d -D -r=false
[debug] network.go:664 Enable inter-container communication
[debug] runtime.go:245 Loaded container 014f6597b20b0b2523bf56829b1bfef8981c3fc2b8095b94f88b60182c0bd07d
[debug] runtime.go:245 Loaded container 02ed21f4d84f4d9dd3c43f5f9d3956ea011ddbc61d1d3da1d0db734378629d7e
[debug] runtime.go:245 Loaded container 049f346647f0e825ac3c20c1c0de525d153485ee94b1d9d5c36b1d84bbf5cb1f
[debug] runtime.go:245 Loaded container 0c56e0dbabd9d41b387981b3b31e8eb7b43e986149679213d53ad66448ef2aa0
[debug] runtime.go:245 Loaded container 0c63b5cfb7623381bc6cbda9314e9ecffff75589680d1923760b12ddf14218bf
[debug] runtime.go:245 Loaded container 0c6bb7c899665d5138b50984d24ab5eeffdc1d326526aee31d519f52daddf228
[debug] runtime.go:245 Loaded container 0dd18c4aafbaa7abd6b1917d7d6eaab29c616abf7d3372d80f18d7ce3e41c1e1
[debug] runtime.go:245 Loaded container 0f50f6c78822e6506ce2700e9e77673ea31f7f4eaf109d085790c66a8a1f20dd