Skip to content

Instantly share code, notes, and snippets.

@shaunfink
shaunfink / README.md
Created July 21, 2018 09:48 — 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:

# Cleanup all gems
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
#!/bin/sh
# Useful script for setting up my mac
### Some useful links ###
# Mac Setup (https://sourabhbajaj.com/mac-setup)
# Install Python 3 (https://docs.python-guide.org/starting/install3/osx)
# Cloud Foundry tools (https://github.com/cloudfoundry/homebrew-tap)
# Other Useful CLI tools (https://stevenloria.com/python-clis)
# zsh Magic (https://rick.cogley.info/post/use-homebrew-zsh-instead-of-the-osx-default)
# https://medium.com/@caulfieldOwen/youre-missing-out-on-a-better-mac-terminal-experience-d73647abf6d7
#!/bin/bash
# https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
# http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/
# http://railsapps.github.io/installrubyonrails-mac.html
# https://gist.github.com/denji/8706676
# Import GPG Keys for Ruby
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
#!/bin/sh
# Install CF Plugins
cf_plugins=(\
'log-stream' \
'report-memory-usage' \
'report-disk-usage' \
'log-cache' \
'app-autoscaler-plugin' \
'autopilot' \
'cfdev' \
#!/bin/sh -ex
codenvy_path=~/Workspace/docker/codenvy
if [[ ( ! -d ${codenvy_path} ) && ( ! -d ${codenvy_path}/data ) ]]; then
mkdir -p ${codenvy_path}
mkdir -p ${codenvy_path}/data
fi
cd ${codenvy_path}
@shaunfink
shaunfink / .gitconfig
Last active September 29, 2019 11:13
[credential]
helper = osxkeychain
[alias]
reboot = reset --hard
unstage = reset HEAD --
last = log -1 HEAD
new = checkout -b
st = status
co = checkout
ci = commit
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
" Set compatibility to Vim only.
set nocompatible
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" Turn on syntax highlighting.
syntax on
" For plug-ins to load correctly.
### Homebrew Stuff
echo "\n### Updating Homebrew ###\n"
brew update
brew upgrade
brew doctor
brew cleanup
### Ruby Gem Stuff
echo "\n### Updating Ruby Gems ###\n"
gem update