Skip to content

Instantly share code, notes, and snippets.

@dasgoll
dasgoll / wildcard-ssl-cert-for-testing-nginx-conf.md
Last active July 11, 2022 20:02 — forked from sr75/wildcard-ssl-cert-for-testing-nginx-conf.md
create a self signed wildcard ssl cert for testing with nginx.conf example
openssl genrsa 2048 > edgenode1.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key edgenode1.key -subj "/C=JO/CN=*.goll.com"> edgenode1-wildcard.cert

Common Name (eg, your name or your server's hostname) []:*.goll.com

@amcgregor
amcgregor / mongodb-faq.md
Last active November 9, 2016 14:27
A FAQ giving more detail than you ever wanted to know on a variety of MongoDB subjects.

Alice's MongoDB FAQ

Personal

Which operating system do you use for your servers?

I use Gentoo Linux, for a wide variety of reasons. Performance is a big one, with the least amount of RAM utilized on startup after a fresh install, startup times to all-services-responding of around four seconds, and broad support for operation in a cluster: distributed computing. By default it compiles packages from source, allowing the installed packages to be highly optimized for the physical hardware it is running on, however it also integrates binary package support and distributed compiling allowing one "master" host to orchestrate compilation across an entire cluster. This results in "from depclean" kernel compiliation times in the order of 40 seconds in my production cluster. I SSHFS mount the package directory from the master on the other hosts and simply install the binary packages it produces.

Hand-installing a new Gentoo build takes around ten minutes on a reasonably powered VM

@istepanov
istepanov / gist:3950977
Created October 25, 2012 07:00
Remove PHPStorm settings from Mac OS X 10.8 Mountain Lion
#!/usr/bin/sh
rm -rf "$HOME/Library/Preferences/WebIde40"
rm -rf "$HOME/Library/Caches/WebIde40"
rm -rf "$HOME/Library/Application Support/WebIde40"
rm -rf "$HOME/Library/Logs/WebIde40"