Skip to content

Instantly share code, notes, and snippets.

View slmingol's full-sized avatar
:octocat:
codz

Sam Mingo slmingol

:octocat:
codz
View GitHub Profile
@slmingol
slmingol / reinvent.md
Created February 28, 2019 04:37 — forked from henrysher/reinvent.md
link for reinvent slides
@slmingol
slmingol / heredoc-argoff-2.sh
Created February 13, 2019 04:44 — forked from wgzhao/heredoc-argoff-2.sh
shell here document usage sample
#!/bin/bash
# generate-script.sh
# Based on an idea by Albert Reiner.
OUTFILE=generated.sh # Name of the file to generate.
# -----------------------------------------------------------
# 'Here document containing the body of the generated script.
(
@slmingol
slmingol / sftp.yaml
Created January 30, 2019 22:18 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata:
@slmingol
slmingol / upgrade_hashicorp_tools.sh
Created January 29, 2019 15:30 — forked from bkyoung/upgrade_hashicorp_tools.sh
Install or upgrade all Hashicorp tools
#!/bin/bash
BASE_URL="https://releases.hashicorp.com"
DOWNLOAD_DIR=$HOME/Downloads
BIN_DIR=$HOME/bin
check_installed_version(){
installed_version=$($1 version | head -n1 | awk '{if ($2 ~ /v.*/){print $2}else{print $NF}}' | tr -d 'v')
echo "$installed_version"
@slmingol
slmingol / dodgetocat_v2.png
Created January 28, 2019 13:29 — forked from cben/dodgetocat_v2.png
Is there an easy way to link image in a GIST ?
dodgetocat_v2.png
@slmingol
slmingol / doc.md
Created January 22, 2019 18:18 — forked from edsiper/doc.md
article_kubecon

suggest parser

apiVersion: v1
kind: Pod
metadata:
  name: apache-logs
  labels:
    app: apache-logs
  annotations:
@slmingol
slmingol / dockerpsns.sh
Created January 9, 2019 04:27 — forked from brendangregg/dockerpsns.sh
docker ps --namespaces
#!/bin/bash
#
# dockerpsns - proof of concept for a "docker ps --namespaces".
#
# USAGE: ./dockerpsns.sh
#
# This lists containers, their init PIDs, and namespace IDs. If container
# namespaces equal the host namespace, they are colored red (this can be
# disabled by setting color=0 below).
#
@slmingol
slmingol / kubectl.md
Created December 5, 2018 04:03 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@slmingol
slmingol / ssh_authentication.txt
Created November 3, 2018 20:08 — forked from ddeveloperr/ssh_authentication.txt
Test your ssh terminal connection with github account, (ssh authentication)
1. You mast have a public key from your mashine stored on github as SSH key here:
https://github.com/settings/ssh
How to create ssh key on unix/mac os x:
- Open terminal, go to the root typing: $ cd ~ (recommended)
- Type: ssh-keygen -t rsa -C "your@email.address"
- To secure your ssh key ststem will ask you for passphrase (recommended) but you can skip it also
- That's you have the ssh key
- Check it with: $ ls -al ~/.ssh