Skip to content

Instantly share code, notes, and snippets.

@ianchesal
ianchesal / simpledesktops_download.py
Created July 8, 2011 15:37 — forked from compbrain/simpledesktops_download.py
Download simpledesktops.com wallpaper images
#!/usr/bin/python
__doc__ = """
simpledesktops_download.py
A quick script that fetches desktop images from the http://simpledesktops.com/ site.
It will start at the most current list of images and keep moving backwards, downloading
desktop images in to a directory on your local machine, until it finds an image that
already exists on disk. At that point it will stop.
@ianchesal
ianchesal / gist:2288184
Created April 3, 2012 00:12
Calculate Winners for the Apple.SE iPad Contest
#!/usr/local/bin/python
import json
import subprocess
from pprint import pprint
import time
import sys
import operator
# The Level 3 Crowd
@ianchesal
ianchesal / gist:2998601
Created June 26, 2012 20:14
AskDifferent Question #54791
> dig 54.247.29.171 any
; <<>> DiG 9.7.3-P3 <<>> 54.247.29.171 any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 27993
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;54.247.29.171. IN ANY
@ianchesal
ianchesal / gist:3187966
Created July 27, 2012 13:21
Error trying to unloaded kext for track pd
MacBook-Pro:~ ian$ sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTrackpad.kext
(kernel) Can't unload kext com.apple.driver.AppleUSBTrackpad; classes have instances:
(kernel) Kext com.apple.driver.AppleUSBTrackpad class AppleUSBFnTrackpad has 1 instance.
(kernel) Kext com.apple.driver.AppleUSBTrackpad class AppleUSBGrIITrackpad has 1 instance.
(kernel) Kext com.apple.driver.AppleUSBTrackpad class AppleUSBGrIIITrackpad has 1 instance.
(kernel) Kext com.apple.driver.AppleUSBTrackpad class AppleUSBTrackpad has 1 instance.
Failed to unload com.apple.driver.AppleUSBTrackpad - (libkern/kext) kext is in use or retained (cannot unload).
@ianchesal
ianchesal / openfds.pl
Created September 1, 2012 19:30
Open File Descriptors per Process
#!/usr/bin/env perl
# Works on any system that supports a 'ps aux' call and the lsof
# command. Counts the number of open file descriptors for each
# process in the 'ps aux' output. Handy if you're trying to see
# which process is hanging on to the most FDs.
use strict;
printf("%-10s %-10s %s\n", 'PID', 'OPEN FDS', 'COMMAND');
@ianchesal
ianchesal / dirsize.py
Created September 1, 2012 19:40
Figures out the total size of all the sub-directories under a directory
#!/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.
@ianchesal
ianchesal / fstab
Last active August 23, 2022 11:21
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.
# 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 / axefxii_preset_leveling.md
Last active August 29, 2015 13:56
Leveling Axe-Fx II Presets Using Pink Noise and Loudness Meter

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

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 / Preferences.sublime-settings
Last active August 29, 2015 14:01
My Sublime Text 2 User Preferences File
{
"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",