Skip to content

Instantly share code, notes, and snippets.

View binarycleric's full-sized avatar
💢

Jon Daniel binarycleric

💢
View GitHub Profile
@binarycleric
binarycleric / texas.md
Created September 6, 2021 02:18
Consumer Products in Texas

Dell HQ: Round Rock, Texas Products: Computers, monitors, printers.

AT&T HQ: Dallas, TX Products: Home Internet, Cable TV, Cell Services, Streaming Services, Sports Television

American AIrlines HQ: Fort Worth, TX

@binarycleric
binarycleric / launch.json
Last active August 27, 2017 16:13
VSCode Configuration
{
"files.eol": "\n",
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe",
"editor.fontSize": 14,
"editor.fontFamily": "Hack",
"editor.tabSize": 2,
"editor.fontLigatures": true,
"editor.cursorStyle": "line",
"editor.cursorBlinking": "solid",
@binarycleric
binarycleric / bad-json-parsing.md
Last active April 17, 2017 16:01
JSON parsing is horrible

We had a small public API change at work that caused some of our clients to break. This was entirely unintentional and the fact that our tests didn't catch this is somewhat embarassing. We noticed that the problem was due to format changes as a result of moving some code from JSON.generate to MultiJson.dump. This lead me down a bit of a rabbit hole and I discovered how different marshalling can between libraries.

Configuration

Our MultiJson setup uses Oj with the following dump options.

{
                    :mode => :compat,
             :time_format => :ruby,

Keybase proof

I hereby claim:

  • I am binarycleric on github.
  • I am binarycleric (https://keybase.io/binarycleric) on keybase.
  • I have a public key whose fingerprint is FD5C D775 33C8 74C5 642D 5434 8484 2E5E 752C 5FD9

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am binarycleric on github.
  • I am binarycleric (https://keybase.io/binarycleric) on keybase.
  • I have a public key whose fingerprint is B3F0 5AD9 CA7E 050E 4A78 57ED 3AE7 D877 87BC 2245

To claim this, I am signing this object:

OpenSSL Security Advisory [9 Jul 2015]
=======================================
Alternative chains certificate forgery (CVE-2015-1793)
======================================================
Severity: High
During certificate verification, OpenSSL (starting from version 1.0.1n and
1.0.2b) will attempt to find an alternative certificate chain if the first
@binarycleric
binarycleric / gist:1c13fa6c34e442089e45
Created March 16, 2015 19:05
Git remote branch cleanup
git branch -r --merged | grep jdaniel | grep -v master | awk -F \/ '{print($2)}' | xargs git push jdaniel --delete
@binarycleric
binarycleric / commotion-vagrant.markdown
Last active August 29, 2015 14:11
Commotion build via Vagrant

apt-get update apt-get upgrade

apt-get install git zsh

mkdir src cd src

git clone git@github.com:opentechinstitute/commotion-router.git

@binarycleric
binarycleric / gist:881ae1d0def7c91fa25b
Created September 30, 2014 15:57
Adding a binary to OS X application firewall
sudo ./socketfilterfw --add ~/.rubies/jruby-1.7.12/bin/ruby
@binarycleric
binarycleric / ruby_object_test.rb
Created April 3, 2014 17:07
Using a single object vs. creating a new one each time. Pretty basic Ruby stuff but I still see this anti-pattern all over the place.
class ClassThatDoesStuff
def some_method
"You're winner!"
end
end
require 'benchmark'