Skip to content

Instantly share code, notes, and snippets.

Ian Chesal ianchesal

Block or report user

Report or block ianchesal

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
View gist:68fd7f9d5c7f1c5ff2e2
module AuthHelper
def http_login
user = 'username'
pw = 'password'
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
end
end
module AuthRequestHelper
#
@ianchesal
ianchesal / gist:3316a7fd5466e01871e6
Created Sep 16, 2014
Debugging 1Password extension problem with browser signature verification
View gist:3316a7fd5466e01871e6
○ → 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.

@ianchesal
ianchesal / .rubocop.yml
Created May 18, 2014
My ~/.rubocop.yml file
View .rubocop.yml
########
# My ~/.rubocop.yml file
#
# Rubocop: https://github.com/bbatsov/rubocop#installation
MethodLength:
Enabled: false
LineLength:
Max: 160
@ianchesal
ianchesal / breathalyzer
Last active Aug 29, 2015
breathalyzer -- Run Rubocop on Changed Files in a Git-Managed Directory
View breathalyzer
#!/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
@ianchesal
ianchesal / Preferences.sublime-settings
Last active Aug 29, 2015
My Sublime Text 2 User Preferences File
View Preferences.sublime-settings
{
"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:

@ianchesal
ianchesal / axefxii_preset_leveling.md
Last active Aug 29, 2015
Leveling Axe-Fx II Presets Using Pink Noise and Loudness Meter
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

@ianchesal
ianchesal / fstab
Last active Dec 27, 2015
fstab to keep my dead Main drive inside my '07 iMac from mounting at boot time and dragging the whole system down. I copy-and-pasted this from https://gist.github.com/threebytesfull/968327 because GitHub kept through a 500 error every time I'd try to clone that gist. Props to the original author of this solution.
View fstab
# 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
@ianchesal
ianchesal / dirsize.py
Created Sep 1, 2012
Figures out the total size of all the sub-directories under a directory
View dirsize.py
#!/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.
You can’t perform that action at this time.