Skip to content

Instantly share code, notes, and snippets.


Ian Chesal ianchesal

View GitHub Profile
48klocs / voltron.txt
Last active Jul 27, 2020
48klocs gigant0r #dimwishlists dump file
View voltron.txt
This file has been truncated, but you can view the full file.
// Mercules' Erentil FR4 breakdown
// Erentil FR4
View docker-compose.yaml
version: '2.1'
container_name: grafana
image: proxx/grafana-armv7
user: "1000"
- 3000:3000
- /opt/grafana:/etc/grafana:rw
lukeplausin /
Last active Aug 2, 2020
AWS, JQ and bash command cheat sheet. How to query, cut and munge things in JSON generally.
# Count total EBS based storage in AWS
aws ec2 describe-volumes | jq "[.Volumes[].Size] | add"
# Count total EBS storage with a tag filter
aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add"
# Describe instances concisely
aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]'
# Wait until $instance_id is running and then immediately stop it again
aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id
# Get 10th instance in the account
mandiwise / Update remote repo
Last active Aug 5, 2020
Transfer repo from Bitbucket to Github
View Update remote repo
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
bzerangue /
Last active Aug 6, 2020
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

showaltb / gist:8542626
Created Jan 21, 2014
Install PhantomJS on Amazon AMI x86_64
View gist:8542626
# download and unpack distribution
tar xf phantomjs-1.9.6-linux-x86_64.tar.bz2
# copy binary
cd phantomjs-1.9.6-linux-x86_64
cp bin/phantomjs /usr/local/bin
View Ruby.sublime-build
# Get Sublime Text to use your rvm ruby without hardcoding a `$USER`.
# Include the configurations below the commend in the appropriate file listed below:
# - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
# - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build
# - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build
# - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build
View urbanspoon_reservations.rb
require 'rubygems'
require 'mechanize'
EMAIL = ''
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
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.
threebytesfull / fstab
Created May 12, 2011
Example /etc/fstab on Mac OS X 10.6 to disable auto-mounting of specific volumes
View fstab
# 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
# noatime to skip writing last access times (performance thing, optional)
# Remember to set the filesystem type (hfs, ntfs, etc) too
You can’t perform that action at this time.