Skip to content

Instantly share code, notes, and snippets.

View jengo's full-sized avatar

Jolene Engo jengo

  • San Francisco, CA
View GitHub Profile
@jengo
jengo / gist:3692558
Created September 10, 2012 17:59
Create remote git repo
# Run this on the remote
export PROJECT=project
export OWNER="jengo.dev"
mkdir /git/$PROJECT.git
cd /git/$PROJECT.git
git init --bare
chown $OWNER /git/$PROJECT.git -R
git repo-config core.sharedRepository true
@jengo
jengo / gist:3193f65e1c92ed1eeb401fc69e426cc3
Last active February 26, 2018 05:43
blender output to video using ffmpeg and docker
If you have docker installed, this is a simple command to load ffmpeg, link current directory and create a video from the output of blender.
docker run -it --rm -v "`pwd`":/tmp/workdir jrottenberg/ffmpeg -r 24 -f image2 -pattern_type glob -i '*.png' -i %04d.png -s hd1080 -vcodec libx264 -pix_fmt yuv420p -y output.mp4
@jengo
jengo / ssh-fingerprint.sh
Last active January 6, 2017 19:27
SSH fingerprint from private key
#!/bin/bash
KEY=$(basename $1)
FILENAME=$1
if [ "${KEY}" == "" ]; then
echo "Missing parameter SSH key"
exit 1
fi

Keybase proof

I hereby claim:

  • I am jengo on github.
  • I am jolene (https://keybase.io/jolene) on keybase.
  • I have a public key ASCSSTrkgLNhBdgTlWzbHylXSYhleFNOmKOUT5UN2ZcVKwo

To claim this, I am signing this object:

@jengo
jengo / gist:4d4257258c10db6ade8bd819c0d30796
Created June 6, 2017 08:39
Generate self signed TLS / SSL certificate as a Kubernetes secret
export HOSTNAME=localhost
export NAMESPACE=default
export SECRET_NAME=test-ssl-secret
openssl req -x509 -nodes -days 365 -sha256 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=${HOSTNAME}/"
kubectl --namespace ${NAMESPACE} create secret tls ${SECRET_NAME} --key /tmp/tls.key --cert /tmp/tls.crt
@jengo
jengo / gist:2a410aa68b12dcb08b123c38909ccd49
Created August 4, 2017 01:38
docker ffmpeg inspire 1 footage to prores 422
export FILE=DJI_0027.MOV
docker run -v `pwd`:/workspace jrottenberg/ffmpeg -i /workspace/$FILE -vcodec prores_ks -threads 4 -profile:v 3 -vcodec copy /workspace/prores422-$FILE
@jengo
jengo / helm-rbac.md
Last active June 6, 2018 18:34 — forked from mgoodness/helm-rbac.md
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller --history-max 30
@jengo
jengo / s3-delay-sync.sh
Created March 8, 2019 22:45
Sync for s3cmd put with skip existing and delay after upload each file
#!/bin/bash
# Written by Jolene Engo <dev.toaster@gmail.com>
# This script is useful for syncing files to an S3 bucket with a delay
# Great for situations where a remote process is grabbing files after upload
# and you don't want to overwhelm the remote system
# The delay will slow the syncing
# If the file already exists, it will be skippped. This allows a resume
# that s3cmd wouldn't normally support for put
@jengo
jengo / gist:2080cb07228a0b8aafb9ea54858e70c5
Last active May 25, 2019 18:47
Modify all Kubernetes Persistent Volume to Retain policy
for f in $(kubectl get pv --no-headers -o custom-columns=NAME:.metadata.name); \
do kubectl patch pv $f -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'; done
@jengo
jengo / cert-manager.yaml
Created June 10, 2021 02:01
Deploy cert-manager using ArgoCD
# This manifest written by Jolene Engo <dev.toaster@gmail.com>
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
namespace: argocd
spec:
destination:
namespace: cert-manager
server: https://kubernetes.default.svc