Skip to content

Instantly share code, notes, and snippets.

@jhidalgo3
jhidalgo3 / deployment.yml
Created Jul 9, 2020 — forked from troyharvey/deployment.yml
Using Kubernetes envFrom for environment variables
View deployment.yml
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@jhidalgo3
jhidalgo3 / aks-cheat-sheet.md
Created May 29, 2020 — forked from yokawasa/aks-cheat-sheet.md
Azure Kubernetes Services Cheat Sheet
View aks-cheat-sheet.md
View benchmark-commands.md

Benchmark commands

Producer

Setup

bin/kafka-topics.sh \
  --zookeeper zookeeper.example.com:2181 \
  --create \
@jhidalgo3
jhidalgo3 / jwtRS256.sh
Created Oct 13, 2019 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
View jwtRS256.sh
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@jhidalgo3
jhidalgo3 / myip.sh
Created Jul 23, 2019
What is my ip?
View myip.sh
myip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
echo "My WAN/Public IP address: ${myip}"
@jhidalgo3
jhidalgo3 / Documentation.md
Created Jan 13, 2019 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)
View Documentation.md

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
View gist:9ccc941a3c32c24e6d57f442d263feb6
### Keybase proof
I hereby claim:
* I am jhidalgo3 on github.
* I am jhidalgo3 (https://keybase.io/jhidalgo3) on keybase.
* I have a public key ASCNjRFDor_Qipm0n8Ik0cxS6B5FurcC0HyOL-rRhAvNpAo
To claim this, I am signing this object:
View docker_clean_scripts.md

Delete all container status=exited

docker rm $(docker ps -a -q -f "status=exited")

Delete all untagged images

docker rmi $(docker images -q --filter "dangling=true")
@jhidalgo3
jhidalgo3 / INSTALLATION.md
Created Nov 22, 2015 — forked from DenisIzmaylov/INSTALLATION.md
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment
View INSTALLATION.md

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

You can’t perform that action at this time.