Skip to content

Instantly share code, notes, and snippets.

https://serversforhackers.com/video/letsencrypt-for-free-easy-ssl-certificates
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# C for Celcius, F for Fahrenheit
temperature_unit: F
# Location required to calculate the time the sun rises and sets
# 39.8135442,-105.0816602
latitude: 39.8135442
longitude: -105.0816602
mqtt:
image: matteocollina/mosca
ports:
- 1883:1883
mqttbridge:
image: stjohnjohnson/smartthings-mqtt-bridge
volumes:
- ./mqtt-bridge:/config
ports:
@drparham
drparham / www.conf
Last active December 16, 2021 15:39
PHP FPM config t2.small
# t2.small
pm = dynamic
pm.max_children = 35
pm.start_servers = 6
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.max_requests = 300
# t2.medium
<?php namespace Wc\Lms\Http\Controllers\Admin;
Use Core\Http\Controllers\Controller as AdminController;
use Wc\Lms\Repositories\Course\CourseRepositoryInterface;
class CoursesController extends AdminController {
/**
* {@inheritDoc}
*/
@drparham
drparham / serverconfig
Last active August 29, 2015 14:20
New Server Configuration
# Fresh Ubuntu Server
sudo apt-get install nginx git php5-cli php5-fpm php5-mcrypt php5-mysql php5-curl php5-gd
# Install php-fpm-cli
# See php-fpm-cli gist
# Install/Configure Unattended Upgrades
# Should be installed on Ubuntu
sudo apt-get install unattended-upgrades
@drparham
drparham / php-fpm-cli
Last active August 29, 2015 14:20 — forked from muhqu/php-fpm-cli
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location ~ /\. { access_log off; log_not_found off; deny all; }
location ~ ~$ { access_log off; log_not_found off; deny all; }

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