Skip to content

Instantly share code, notes, and snippets.

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

@unformatt
unformatt / rename.sh
Created January 23, 2019 23:00
Linux: Prefix all files with date created
#!/bin/bash
for file in *; do
[[ -f $file ]] && mv "$file" "`date -r "$file" "+%Y-%m-%d-%H:%M:%S"`_$file"
done
@unformatt
unformatt / peplink_connection_check.py
Created February 11, 2019 20:03
Check if internet is available. If not, reboot Peplink router.
@unformatt
unformatt / csv_splitter.py
Last active March 29, 2019 21:33 — forked from jrivero/csv_splitter.py
A Python CSV splitter
import os, csv
def split_csv(input_file, row_limit=1000, output_name_template='output_%05d.csv', output_path='.', delimiter=',', keep_headers=False):
"""
Splits a CSV file into multiple files.
"""
def get_csv_writer(i):
path = os.path.join(output_path, output_name_template % i)