Skip to content

Instantly share code, notes, and snippets.

View mnlcandelaria's full-sized avatar

Manly Candelaria mnlcandelaria

View GitHub Profile
@mnlcandelaria
mnlcandelaria / self-signed certificate
Created November 7, 2018 09:36
Self Signed Certificate Mac
mkdir /tmp/crt && cd /tmp/crt
# Wildcard SSL certificate
sudo openssl req -subj "/commonName=Local Certificate/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout /server/conf/cert/server.key -out /server/conf/cert/server.crt
sudo mkdir /etc/apache2/ssl
sudo mv *.key *.crt /etc/apache2/ssl
# uncomment on Apache Configuration
brew install nginx
sudo nginx
sudo nginx -s stop
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf.bak
cp /usr/local/etc/nginx/nginx.conf.bak /usr/local/etc/nginx/nginx.conf
# add include conf.d/*.conf; on /usr/local/etc/nginx/nginx.conf
http {
# ... ...
@mnlcandelaria
mnlcandelaria / bash_profile
Created January 21, 2020 02:44
Run source ~/.bash_profile every time start new terminal
.bashrc will be loaded per default, so if you have all your stuff in .bash_profile ensure
it will be loaded, so you have to add to your .bashrc:
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi
--------------------------------------------------
If you are using oh-my-zsh, the default one that will be loaded automatically is ~/.zshrc.