Skip to content

Instantly share code, notes, and snippets.

View michaelbrawn's full-sized avatar
:octocat:
My format: Guardian

Michael Brawn michaelbrawn

:octocat:
My format: Guardian
View GitHub Profile
(*
Author: Anil Natha
Description:
This script toggles the visibility of hidden files in OS X. This includes
showing hidden files in Finder windows and on the desktop.
Last Updated: 2015-02-20
*)
tell application "System Events"
try
@michaelbrawn
michaelbrawn / axlsx_date_styles.rb
Last active March 29, 2016 01:49 — forked from randym/date_styles.rb
Axlsx date formatting with custom styles and column formatting
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'axlsx'
require 'date'
p = Axlsx::Package.new
wb = p.workbook
wb.styles do |style|
# Date/Time Styles
#

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version

brew install mysql

@michaelbrawn
michaelbrawn / README.md
Last active December 17, 2018 15:45 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@michaelbrawn
michaelbrawn / GPG and git on macOS.md
Last active December 11, 2018 15:45 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

brew cask install gpg-suite "/usr/local/Caskroom/gpg-suite/{{version}}/Install.pkg"

  1. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  2. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys --keyid-format LONG