Skip to content

Instantly share code, notes, and snippets.

View thoran's full-sized avatar
💭
Undecided

thoran thoran

💭
Undecided
  • Melbourne, Australia
  • 06:32 (UTC +11:00)
View GitHub Profile
@thoran
thoran / gist:ad8d514f7d7ff391e72c83b4567e06e9
Created June 2, 2023 07:42
When gem install pg can't find the right pg_config
gem install pg --version=1.2.3 -- --with-pg-config=/opt/homebrew/bin/pg_config
@thoran
thoran / gist:8b0818960ec848b0eebc1f58be94b705
Last active July 7, 2023 03:13
For when Rubygems is getting the platform wrong (thinks its x86_64 when it should be arm64) when installing nokogiri
arch -arm64 gem install nokogiri -v '1.13.10' --platform=ruby -- --use-system-libraries
@thoran
thoran / gist:eb2b607df72adbbc35bae222fd99549f
Created February 19, 2020 05:26 — forked from atadams/gist:3085530
Terminal: Defaults Write
# ~/.osx — http://mths.be/osx
###############################################################################
# General UI/UX #
###############################################################################
# Menu bar: disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Disable the “Are you sure you want to open this application?” dialog
@thoran
thoran / osx_defaults.sh
Created February 19, 2020 04:08
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
echo "Need to recapture iTerm settings"
exit -1
# TODO: Need to figure out the settings for the following:
# 1) Finder: Left nav, favorite items with their order
# 2) Dock: Items with order
# 3) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 4) Login items for my user (i.e. apps started when I login)
@thoran
thoran / brew-reinstall
Last active August 29, 2015 14:07
brew-reinstall (Handy after an OSX upgrade!)
#!/usr/bin/env ruby
# brew-reinstall
# 20141003
# 0.4.0
# Notes:
# 1. If a reinstall fails, it should not block the reinstallation of other brews, but rather report that failure at the end.
# Changes since 0.3: