Skip to content

Instantly share code, notes, and snippets.

View 1-restify-server-cheatsheet.js
// Restify Server CheatSheet.
// More about the API:
// Install restify with npm install restify
// 1.1. Creating a Server.
var restify = require('restify');
tomatolicious /
Created May 18, 2018 12:49 — forked from someburner/
Let's Encrypt + wildcards for Nginx (Ubuntu 17.10, IPv6, HTTP/2, Proxy-Pass, SLL Rating=A)

Let's Encrypt for Nginx on Ubuntu 17.10 with wildcards

Guide info:

  • we're setting up, *
  • HTML is served from /var/www/mydomain
  • Challenges are served from /var/www/letsencrypt.
  • As of this writing, SSL Labs gives it an A
  • Took info from here and here on wilcard certs.


tomatolicious / nginx-phpmyadmin.conf
Created September 24, 2017 07:38
Snippet for properly handling all phpMyAdmin cases in NGINX. Collected somewhere from Stack Overflow.
View nginx-phpmyadmin.conf
# Phpmyadmin Configurations
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

Keybase proof

I hereby claim:

  • I am tomatolicious on github.
  • I am tomato ( on keybase.
  • I have a public key whose fingerprint is 3533 A863 DF64 C635 0C7F BF69 3FF6 1522 123D 0BE2

To claim this, I am signing this object: