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
ianchesal / brew_list_versions.txt
Created Jul 26, 2019
Currently installed brew packages
View brew_list_versions.txt
❯ brew list --versions
adns 1.5.1
aom 1.0.0
autoconf 2.69
awscli 1.16.200
bash-completion 1.3_3
bat 0.11.0_1
cairo 1.16.0_2
exiftool 11.57
ffmpeg HEAD-2d900d8_1
ianchesal /
Created Jul 8, 2011 — forked from compbrain/
Download wallpaper images
__doc__ = """
A quick script that fetches desktop images from the 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 / 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 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:
# See also:
# 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 /
Created Sep 1, 2012
Figures out the total size of all the sub-directories under a directory
#!/bin/env python
__doc__ = '''
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 /
Created Sep 1, 2012
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 / gist:3187966
Created Jul 27, 2012
Error trying to unloaded kext for track pd
View gist:3187966
MacBook-Pro:~ ian$ sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTrackpad.kext
(kernel) Can't unload kext; classes have instances:
(kernel) Kext class AppleUSBFnTrackpad has 1 instance.
(kernel) Kext class AppleUSBGrIITrackpad has 1 instance.
(kernel) Kext class AppleUSBGrIIITrackpad has 1 instance.
(kernel) Kext class AppleUSBTrackpad has 1 instance.
Failed to unload - (libkern/kext) kext is in use or retained (cannot unload).
ianchesal / gist:2998601
Created Jun 26, 2012
AskDifferent Question #54791
View gist:2998601
> dig any
; <<>> DiG 9.7.3-P3 <<>> 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
ianchesal / gist:2288184
Created Apr 3, 2012
Calculate Winners for the Apple.SE iPad Contest
View gist:2288184
import json
import subprocess
from pprint import pprint
import time
import sys
import operator
# The Level 3 Crowd
View gist:68fd7f9d5c7f1c5ff2e2
module AuthHelper
def http_login
user = 'username'
pw = 'password'
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
module AuthRequestHelper
ianchesal / gist:3316a7fd5466e01871e6
Created Sep 16, 2014
Debugging 1Password extension problem with browser signature verification
View gist:3316a7fd5466e01871e6
○ → codesign -dvvv /Applications/Google\
Executable=/Applications/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
Signature size=8507
Authority=Developer ID Application: Google Inc.
Authority=Developer ID Certification Authority
You can’t perform that action at this time.