Skip to content

Instantly share code, notes, and snippets.

@andrepearce
andrepearce / certbot_iam.yaml
Created August 13, 2019 01:13
Certbot Route53 plugin AWS IAM Account & Policy CloudFormation Template
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS IAM account & policy CloudFormation template for Certbot Route53 plugin
Parameters:
CertbotServiceUserName:
Type: String
Description: Certbot service user name
Default: service.certbot
AllowedPattern: \S+
@andrepearce
andrepearce / linux-minimal-setup-notes.md
Last active November 27, 2018 12:29
Notes for basic setup of a minimal Linux installation

Linux Minimal Setup Notes

Configure Network

  1. nmcli d - this will list the attached network devices.
  2. nmtui - this is an interactive method to configire network.

Configure SSH Keys

  1. Generate keys for instance ssh-keygen -t rsa -b 4096 -N "" -f ./server-key
@andrepearce
andrepearce / osx-shell-config.sh
Last active April 23, 2018 06:45
OSX Shell Configuration - with Zsh
# !/bin/bash -e
# Make sure brew is installed
if hash brew 2>/dev/null; then
printf "Brew is already installed!\n"
else
printf "ERROR: Please install brew before running this script.\n"
exit 1
fi
@andrepearce
andrepearce / install_opencv_python3.sh
Last active September 1, 2017 14:13
Install OpenCV for Python3 on Debian (not tested)
# !/bin/bash -ex
OPENCV=3.3.0
OPENCV_CONTRIB=3.3.0
# Install Pre-requisites
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential cmake git pkg-config wget \
libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev \
@andrepearce
andrepearce / chromium_update.sh
Last active April 2, 2024 09:21 — forked from Superbil/chromium_update.sh
Auto Update Chromium on OSX
#!/bin/sh -ex
# Chromium update script
# - forked from Superbil/chromium_update.sh
# - Updated by andrepearce
OS=mac
DL_URL=https://download-chromium.appspot.com/dl/${OS}?type=snapshots
INSTALL_DIR=/Applications
TMP_DIR="/tmp/update-chrome-$RANDOM"
TMP_File=chromium.zip