Skip to content

Instantly share code, notes, and snippets.

@mezrin
mezrin / DEV_PHP_SESSIONCONTROLLER
Last active December 17, 2018 21:33 — forked from Nilpo/Session.php
PHP controller for $_SESSION variables
PHP controller for $_SESSION variables
@mezrin
mezrin / UBUNTU-INSTALL-MYSQL-5.6
Last active February 11, 2017 00:22
Install MySQL 5.6 on the Ubuntu 12.10
Installation of the MySQL 5.6 on the Ubuntu 12.10.
Should work for 12.04, 13.10
It's a fresh installation. On the computer should not be installed any previous versions of MySQL
Another tutorials:
https://gist.github.com/jebenexer/5790236
https://gist.github.com/michfield/5578726
http://www.peterchen.net/2013/02/20/en-how-to-install-mysql-5-6-on-ubuntu-12-04-precise/
@mezrin
mezrin / letsencrypt_2017.md
Created September 22, 2017 23:10 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.