View gist:68fd7f9d5c7f1c5ff2e2
1 2 3 4 5 6 7 8 9 10
module AuthHelper
def http_login
user = 'username'
pw = 'password'
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
end
end
 
module AuthRequestHelper
#
View gist:3316a7fd5466e01871e6
1 2 3 4 5 6 7 8 9 10
○ → codesign -dvvv /Applications/Google\ Chrome.app
Executable=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Identifier=com.google.Chrome
Format=bundle with Mach-O thin (i386)
CodeDirectory v=20100 size=186 flags=0x0(none) hashes=3+3 location=embedded
Hash type=sha1 size=20
CDHash=a8d3a44cc2a7957e8d9cd9c6f6eb9124a7e4a9fd
Signature size=8507
Authority=Developer ID Application: Google Inc.
Authority=Developer ID Certification Authority
View terminal_fonts.md

Melso

Like Menlo but it has a dotted zero a slightly nicer kerning and spacing. Menlo refined if you like.

View .rubocop.yml
1 2 3 4 5 6 7 8 9 10
########
# My ~/.rubocop.yml file
#
# Rubocop: https://github.com/bbatsov/rubocop#installation
 
MethodLength:
Enabled: false
 
LineLength:
Max: 160
View breathalyzer
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
##
# Runs rubocop on just the modified and new files in a repoistory. Handy for
# checking your compliance before you commit. It only runs against files that
# end in .rb. Maybe it should do more than that?
#
# Easy to run. In a dirty working directory:
#
# breathalyzer
View Preferences.sublime-settings
1 2 3 4 5 6 7 8 9 10
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"draw_indent_guides": true,
"draw_white_space": "selection",
"file_exclude_patterns":
[
".DS_Store",
"*.lib",
View keybase.md

Keybase proof

I hereby claim:

  • I am ianchesal on github.
  • I am irc (https://keybase.io/irc) on keybase.
  • I have a public key whose fingerprint is 7CC0 CE67 8C37 FC27 DA3C E494 F56B 7A6F 0A32 A0B9

To claim this, I am signing this object:

View axefxii_preset_leveling.md

Leveling Axe-Fx II Presets Using Pink Noise and Loudness Meter

Nothing can truly replace leveling presets live, with the band, using your ears. But if you need to get things close, and you can't open it up to full volume to test levels using a Db meter, this approach works pretty well.

Software Required

You'll need a pink noise generator and a loudness meter application. I'm on OS X and I use Noisy for pink noise generation and Orban Loudness Meter for measuring. Both will work using the Axe-Fx II's USB in and out on OS X 10.9.x. They also both happen to be free which is nice.

Setting Up

View fstab
1 2 3 4 5 6 7 8 9 10
# Original gist: https://gist.github.com/threebytesfull/968327
#
# See also: http://apple.stackexchange.com/questions/17264/prevent-bootcamp-partition-from-automatically-mounting
#
# You can find the volume UUID in Disk Utility. Select the volume on the left
# and then File->Get Info. See "Universal Unique Identifier".
#
# Options used below:
# ro for readonly (can be omitted)
# noauto to prevent auto-mount
View dirsize.py
1 2 3 4 5 6 7 8 9
#!/bin/env python
 
__doc__ = '''
dirsize.py
Figure out the size of everything contained in all the sub-directories under a target
in some sort of parallel manner. Try and produce some output that's not as terrible
to grok as du.
Something went wrong with that request. Please try again.