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
@slmingol
slmingol / ansible_ad_hoc_inventories.md
Last active Jul 11, 2019 — forked from alces/ansible_ad_hoc_inventories.md
Using Ad-hoc Inventories in Ansible
View ansible_ad_hoc_inventories.md

In case you want to run ansible (or ansible-playbook) command against a set of hosts that makes sense only for one run, you can don't bother to create one-time inventory file, but simply define a comma-separated list of hosts as argument of --invertory option (or its short form that's simply -i) as follows:

ansible --inventory=myhost1,myhost2,myhost3 all -m setup -a 'filter=*name*'

(note that all in this command line stands for the target hostname)

If you have only one host to run your playbook against, your inventory string must ends with ,

View pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongodb-pv-claim
labels:
app: mongodb
spec:
accessModes:
- ReadWriteOnce
resources:
@slmingol
slmingol / f30_rtl8821ce_wifi_setup.md
Created Jun 22, 2019
Setting up RTL8821CE WiFi Adapter (Realtek) on Fedora 30
View f30_rtl8821ce_wifi_setup.md

*-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:01:00.0 logical name: enp1s0 version: 15 serial: 10:62:e5:e8:ff:06 size: 10Mbit/s

@slmingol
slmingol / k8s_minecraft_server_load_test.yml
Last active Jun 20, 2019
Launch 75 minecraft servers on kubernetes
View k8s_minecraft_server_load_test.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerminecraft
spec:
replicas: 75
revisionHistoryLimit: 1
selector:
matchLabels:
app: dockerminecraft
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 Jun 3, 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

$ sudo apt-get install openvpn
$ cd /etc/openvpn
$ sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
$ sudo apt-get install ca-certificates
$ sudo apt-get install unzip
$ sudo unzip ovpn.zip
$ sudo rm 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

You can’t perform that action at this time.