Skip to content

Instantly share code, notes, and snippets.

:octocat:
codz

Sam Mingo slmingol

:octocat:
codz
Block or report user

Report or block slmingol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View git-crypt-list-keys.sh
for key in .git-crypt/keys/default/0/* ; do gpg -k $(echo $(basename $key) | sed -e 's/.gpg//') ; done ;
@slmingol
slmingol / README.md
Last active Jul 28, 2019
Setting up Raspbian on a Raspberry Pi as a OpenVPN Gateway
View README.md

Setting up Raspbian on a Raspberry Pi as a OpenVPN Gateway

openvpn install/configure

$ sudo apt -y upgrade
$ sudo reboot

$ sudo apt -y install openvpn ca-certificates unzip jq
$ cd /etc/openvpn
$ sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
@slmingol
slmingol / aws.md
Created May 22, 2019 — forked from colinvh/aws.md
AWS Region Names
View aws.md

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@slmingol
slmingol / watchfiles.md
Created Apr 22, 2019 — forked from thiagoh/ watchfiles.md
watchfiles: Watch multiple files and execute bash commands as file changes occur
View watchfiles.md

watchfiles

  • author: Thiago Andrade thiagoh@gmail.com
  • license: GPLv3
  • description:
  • watches the given paths for changes
  • and executes a given command when changes occur
  • usage:
  • watchfiles <paths...>
@slmingol
slmingol / reset_advertising_id.sh
Created Apr 20, 2019
Example AppleScript to Reset Advertising Identifier on macOS under System Preferences -> Security & Privacy
View reset_advertising_id.sh
#!/bin/bash
### REF: https://apple.stackexchange.com/questions/357209/automating-reset-advertising-identifier-is-it-possible/357211?noredirect=1#comment471757_357211
osascript << END
if running of application "System Preferences" then
try
tell application "System Preferences" to quit
on error
do shell script "killall 'System Preferences'"
View artifactory.conf
# place in /etc/yum/pluginconf.d/artifactory.conf
[main]
enabled=1
@slmingol
slmingol / evident_io_terraform.tf
Last active Mar 27, 2019 — forked from chrisguitarguy/evident_io_terraform.tf
Terraform configuration for an Evident.io IAM Role
View evident_io_terraform.tf
variable "evident_account" {
type = "string"
}
variable "evident_id" {
type = "string"
}
data "aws_iam_policy_document" "evident" {
statement {
You can’t perform that action at this time.