Defaults:
- mysql user: teresa
- mysql password: foobar
- mysql database: teresa
- mysql namespace: mysql
- mysql helm name: mysql
- mysql service name: teresa
# Making substitutions on files where a certain pattern is found | |
fgrep -r "<something>" . | awk -F : '{print $1}' | xargs sed -i "s/<something>/<something else>/g" $@ | |
## Mac OS specifics | |
## Cleaning up Time Machine snapshots | |
tmutil listlocalsnapshots / | awk -F "." '{print $4}' | while read dt; do tmutil deletelocalsnapshots $dt; done |
I had some trouble mounting a LUKS device recently, so I decided to make this gist.
So, it looks like Ubuntu already does the job of doing luksopen
on your device, so you don't have to worry about it.
In order to mount it, I had to:
vgdisplay
vgrename
" vim airline required configs | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" add plugins bellow | |
Plugin 'stephpy/vim-yaml' |
kubectl create ns gocd
helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm install gocd-app --namespace gocd stable/gocd
secret_name=$(kubectl get serviceaccount gocd-app --namespace=gocd -o jsonpath="{.secrets[0].name}")
kubectl get secret $secret_name --namespace=gocd -o jsonpath="{.data['token']}" | base64 --decode
kubectl get secret $secret_name --namespace=gocd -o jsonpath="{.data['ca\.crt']}" | base64 --decode
#!/bin/bash | |
usage="$(basename "$0") [OPTIONS] -- changes your Slack status to AFK or Working Remotely | |
[OPTIONS]: | |
-h|--help This help message | |
--afk Changes your Slack profile to AFK | |
--remote Changes your Slack profile to Working Remotely | |
--token Your Slack token (see https://api.slack.com/legacy/custom-integrations/legacy-tokens) | |
" |