Skip to content

Instantly share code, notes, and snippets.

View cbroberg's full-sized avatar
💭
Building code

Christian Broberg cbroberg

💭
Building code
View GitHub Profile
@cbroberg
cbroberg / create-key-pair.sh
Created March 6, 2018 19:39 — forked from mince27/create-key-pair.sh
AWS Lightsail Create Key Pair
aws lightsail create-key-pair \
--key-pair-name 'lightsail_demo' \
--query 'privateKeyBase64' \
--output text > 'demo.key'
chmod 700 "demo.key"
@cbroberg
cbroberg / osx-mongodb-rlimits-fix.md
Created March 6, 2017 20:49 — forked from tamitutor/osx-mongodb-rlimits-fix.md
Fix Mongodb "soft rlimits" Warning On Mac OS X (Yosemite)

If you are seeing Mongo soft rlimits warnings in your logs, or a WARNING: soft rlimits too low. Number of files is 256, should be at least 1000 when you login to mongo shell via mongo from the commandline, or any mysterious/unexplained mongo connection errors... follow this how-to exactly and it will resolve the issue for you.

(Source of this how to found at basho/basho_docs#1402)

First file: sudo vi /Library/LaunchDaemons/limit.maxfiles.plist

...containing: