This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Closes any running Firefox (you'd better close it manually, | |
# but this is a safeguard) | |
killall firefox | |
# Defragments all databases. A few will result in "Error: file | |
# is encrypted or is not a database". It's fine, they will be | |
# skipped and no harm will be done. | |
for f in ~/Library/Application\ Support/Firefox/Profiles/*/*.sqlite; do sqlite3 "$f" 'VACUUM;'; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# lolcommitify.rb - adds the post-commit hook of https://github.com/mroth/lolcommits | |
# to every single git repository on a directory, recursively | |
# | |
# Copyright 2013 Chester ([email protected]), BSD-style copyright and disclaimer apply | |
# (http://opensource.org/licenses/bsd-license.php) | |
require 'fileutils' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; hello.asm | |
; | |
; A "Hello, World!" which illustrates an Atari 2600 programming | |
; introduction talk (slides at http://slideshare.net/chesterbr). | |
; | |
; This is free software (see license below). Build it with DASM | |
; (http://dasm-dillon.sourceforge.net/), by running: | |
; | |
; dasm hello.asm -ohello.bin -f3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe SomeClass do | |
shared_examples_for 'a nice method' do | |
let(:method) { example.metadata[:example_group][:example_group][:description].gsub /\#/,'' } | |
it 'should do nice things' do | |
... | |
# This will call subject.foo_method or subject.bar_method, according to context | |
subject.send(method) | |
... | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am chesterbr on github. | |
* I am chesterbr (https://keybase.io/chesterbr) on keybase. | |
* I have a public key whose fingerprint is B26F 1A11 370A CB21 35B5 6469 1B8A C8B8 3B04 9C92 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmB0lJnHS43/9rBCdT3gBNtq7h7cw9ie26b7CNK9C7qiyo9z2gwGPnYRD+/cPZ72eHX9e8fWxDJ6CS0QxXIga0WUwJLDlDYGEZDXU6pc0KPEilZ8SIXUhD2FVwZilB62fw9eEOY3vGLtP/NckKcqIuWXauX48aVyf8Dkyriwl18wYAUYqf1dFfILplLx+GJXCsc5DRsNkSLj7jNMBD2Z64TtHw3uqV84XV58+vNc5UPTzHlateMOmcZTNg4AmM/DyBMTcj3PhoVebjBcEtGtWYgId4Q1vy6sq3QOwoOMKq95TAszRUqckqQ99R2dGEfWy2rXjW6zYCNZa8aoKk+IPow== [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://en.wikipedia.org/wiki/Cheryl%27s_Birthday | |
A knows the month | |
B knows the day | |
The candidates are: | |
may 15 16 19 | |
june 17 18 | |
july 14 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ruby2600' | |
rom_file = "/Users/chester/Downloads/ehbasic.bin" | |
rom_addr = 0xC000 | |
# Initialize a CPU with 64K of memory | |
cpu = Ruby2600::CPU.new | |
memory = Array.new(64*1024) { 0 } | |
cpu.memory = memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decompressing..........done | |
Decompressing..........done | |
CFE for WNDR3700v3 version: v1.0.6 | |
Build Date: Wed May 18 17:25:10 CST 2011 | |
Init Arena | |
Init Devs. | |
Boot partition size = 262144(0x40000) | |
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decompressing..........done | |
Decompressing..........done | |
CFE for WNDR3700v3 version: v1.0.6 | |
Build Date: Wed May 18 17:25:10 CST 2011 | |
Init Arena | |
Init Devs. | |
Boot partition size = 262144(0x40000) | |
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB |
OlderNewer