Skip to content

Instantly share code, notes, and snippets.

View brunston's full-sized avatar

brunston poon brunston

View GitHub Profile
@brunston
brunston / lessl-lamp.md
Created February 13, 2017 22:09
Let's Encrypt with LAMP

Using Let's Encrypt with a LAMP stack (Apache Web Server)

Quick intro: Let's Encrypt is a relatively new certificate authority which issues SSL certificates using an automated system that issues challenges to the specified server to ensure that the server controls the domain which is attempting the automated certification process. The certificates last only 90 days but can be renewed indefinitely.

Update and install the Let's Encrypt client

On Ubuntu 16.04:

sudo apt-get update
sudo apt-get install letsencrypt python-letsencrypt-apache
@brunston
brunston / lessl-superauto.md
Last active February 13, 2017 22:27
Superauto securing of LAMP using Let's Encrypt

Superautomate Let's Encrypt Process

The following automates the process detailed here, in an earlier gist: https://gist.github.com/brunston/3c5b032f7a4c4882955f1c8985ca7fb1 You can enter the following commands in a bash shell. While I am not in the habit of providing nefarious bash scripts, it is always recommended to check the body of the bash script yourself before running on your server.

curl -o le-superauto.sh http://brunston.io/bash/le-superauto-ubuntu1604.sh
sudo ./le-superauto.sh <desired domain to issue cert to>
@brunston
brunston / .vimrc
Last active January 25, 2018 04:56
brunston_vimrc
set fileformat=unix
set nocompatible
set number
set backspace=2
set smartcase
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent

Keybase proof

I hereby claim:

  • I am brunston on github.
  • I am brunston (https://keybase.io/brunston) on keybase.
  • I have a public key ASCPMpOfmQAtlITcbUlCtr1YrOtSf66riPv94UC9O4yk8Ao

To claim this, I am signing this object:

@brunston
brunston / dash_css.css
Created September 29, 2017 07:56
Dash CSS (forked from https://codepen.io/chriddyp/pen/bWLwgP.css, based off Skeleton)
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
{
"http.proxyStrictSSL": false,
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"update.channel": "none",
"vim.disableAnnoyingNeovimMessage": true,
"editor.rulers":[100],
"editor.parameterHints": true,
"vim.cmdLineInitialColon": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
@brunston
brunston / new-vimrc
Last active May 25, 2018 16:17
New .vimrc
set fileformat=unix
set nocompatible
set number
set backspace=2
set smartcase
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
@brunston
brunston / tmux-cheatsheet.markdown
Last active July 5, 2018 17:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

This cheatsheet includes the keybindings from my dotfiles.

start new:

tmux

start new with session name: