Skip to content

Instantly share code, notes, and snippets.


Sam Mingo slmingol

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 /
Created Nov 14, 2019 — forked from joyrexus/
curl tutorial

An introduction to curl using GitHub's API.


Makes a basic GET request to the specifed URI


Includes HTTP-Header information in the output

slmingol / IAM Permissions
Created Sep 15, 2019 — forked from mechcozmo/IAM Permissions
A list of IAM permissions you can use in policy documents. Collected from the myriad of places Amazon hides them. (incomplete)
View IAM Permissions
slmingol /
Created Sep 6, 2019 — forked from mattratleph/
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
slmingol / .gitconfig
Created Aug 13, 2019 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
View .gitconfig
# Working with branches
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
slmingol /
Created Jul 25, 2019 — forked from taoyuan/
Force git to use https:// instead of git://
git config --global url."".insteadOf
git config --global url."https://".insteadOf git://
slmingol /
Last active Jul 11, 2019 — forked from alces/
Using Ad-hoc Inventories in Ansible

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
name: mongodb-pv-claim
app: mongodb
- ReadWriteOnce
slmingol /
Created Jun 22, 2019
Setting up RTL8821CE WiFi Adapter (Realtek) on Fedora 30

*-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 / 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
name: dockerminecraft
replicas: 75
revisionHistoryLimit: 1
app: dockerminecraft
You can’t perform that action at this time.