Skip to content

Instantly share code, notes, and snippets.

View jackfiallos's full-sized avatar
👾
experienced developer

Jack Fiallos jackfiallos

👾
experienced developer
View GitHub Profile
@jackfiallos
jackfiallos / dos2unix.sh
Created October 10, 2018 12:52 — forked from jappy/dos2unix.sh
Shell script to convert files with CRLF to LF (Mac/Linux)
#! /bin/sh
for x
do
echo "Converting $x"
tr -d '\015' < "$x" > "tmp.$x"
mv "tmp.$x" "$x"
done
@jackfiallos
jackfiallos / nginx.conf
Created August 25, 2018 08:09 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jackfiallos
jackfiallos / install-comodo-ssl-cert-for-nginx.rst
Created August 25, 2018 07:27 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert