Skip to content

Instantly share code, notes, and snippets.

Jason Weathered jasoncodes

Block or report user

Report or block jasoncodes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jasoncodes
jasoncodes / README
Created Sep 19, 2018
JSON bookmarklet
View README
A basic bookmarklet to make JSON readable.
Minified using http://chriszarate.github.io/bookmarkleter/.
View archive_heroku_papertrail.rb
require 'bundler'
Bundler.configure
require 'bundler/inline'
gemfile do
source 'http://rubygems.org'
gem 'activesupport', require: 'active_support/all'
gem 'aws-sdk-s3'
gem 'parallel'
@jasoncodes
jasoncodes / README
Last active Jun 29, 2018
Expand GitHub Pull Requests
View README
Show outdated comments and large diffs on GitHub Pull Requests.
Minified using http://chriszarate.github.io/bookmarkleter/.
View pushd.pl
#!/usr/bin/env perl
use strict;
use warnings FATAL => 'all';
{
package pushd;
use Cwd qw(getcwd chdir);
sub new {
View gist:028135cc81de6a7afaae
keys = [
%w[a 1 x],
%w[a 1 y],
%w[a 2 x],
%w[a 3 x],
%w[a 3 y],
%w[b 3 y],
%w[b 4 z],
]
@jasoncodes
jasoncodes / README
Last active Aug 29, 2015
Disable Hyphenation and Justification Bookmarklet
View README
Disables hyphenation and full text justification.
Minified using http://chriszarate.github.io/bookmarkleter/.
@jasoncodes
jasoncodes / fix-bash.sh
Last active Aug 29, 2015
Shellshock (CVE-2014-6271 and CVE-2014-7169) patch for OS X 10.9 Mavericks
View fix-bash.sh
#!/bin/bash -e
# Shellshock (CVE-2014-6271 and CVE-2014-7169) patch for OS X 10.9 Mavericks
# Based on http://apple.stackexchange.com/a/146851
cd /tmp
mkdir bash-fix
cd bash-fix
curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf -
cd bash-92/bash-3.2
@jasoncodes
jasoncodes / missing_foreign_key_constraints_spec.sql
Created Sep 1, 2014
Find missing foreign key constraints
View missing_foreign_key_constraints_spec.sql
SELECT CONCAT(col.table_name, '.', col.column_name)
FROM information_schema.columns col
INNER JOIN pg_catalog.pg_tables tbl ON tbl.schemaname = col.table_schema AND tbl.tablename = col.table_name
LEFT JOIN information_schema.columns col_type ON (
col.table_schema = col_type.table_schema AND
col.table_name = col_type.table_name AND
regexp_replace(col.column_name, '_id$', '_type') = col_type.column_name
)
LEFT JOIN (
(
View keybase.md

Keybase proof

I hereby claim:

  • I am jasoncodes on github.
  • I am jasoncodes (https://keybase.io/jasoncodes) on keybase.
  • I have a public key whose fingerprint is 00FE 9E5D 9F6E DBF2 B03E 971E CA17 A856 9172 8429

To claim this, I am signing this object:

View vim_tips.markdown

Vim Tips

fresh

Build your dotfiles (shell, Vim config) from multiple sources with fresh.

Both of our dotfiles are built using fresh. We source Vim and other config from each other:

You can’t perform that action at this time.