http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html https://www.youtube.com/watch?v=_wiGpBQGCjU
KEY=XXXXXXXXXXXX | |
HOST="https://metrics.crisidev.org" | |
mkdir -p dashboards && for dash in $(curl -k -H "Authorization: Bearer $KEY" $HOST/api/search\?query\=\& |tr ']' '\n' |cut -d "," -f 5 |grep slug |cut -d\" -f 4); do | |
curl -k -H "Authorization: Bearer $KEY" $HOST/api/dashboards/db/$dash > dashboards/$dash.json | |
done |
minikube stop; minikube delete && | |
docker stop $(docker ps -aq) && | |
rm -rf ~/.kube ~/.minikube && | |
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube && | |
launchctl stop '*kubelet*.mount' && | |
launchctl stop localkube.service && | |
launchctl disable localkube.service && | |
sudo rm -rf /etc/kubernetes/ && | |
docker system prune -af --volumes |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# session management | |
tmux ls (or tmux list-sessions) | |
tmux new -s session-name | |
Ctrl-b d Detach from session | |
tmux attach -t [session name] | |
tmux kill-session -t session-name | |
Ctrl-b c Create new window | |
Ctrl-b d Detach current client |
##Generating a new ssh-key
Open Terminal. Paste the text below, substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Generating public/private rsa key pair.
This gist is based on the information available at golang/dep, only slightly more terse and annotated with a few notes and links primarily for my own personal benefit. It's public in case this information is helpful to anyone else as well.
I initially advocated Glide for my team and then, more recently, vndr. I've also taken the approach of exerting direct control over what goes into vendor/
in my Dockerfiles, and also work from
isolated GOPATH environments on my system per project to ensure that dependencies are explicitly found under vendor/
.
At the end of the day, vendoring (and committing vendor/
) is about being in control of your dependencies and being able to achieve reproducible builds. While you can achieve this manually, things that are nice to have in a vendoring tool include:
BigQuery allows organizations to capture and analyze data in real time using its powerful streaming ingestion | |
capability so that your insights are always current, and it’s free for up to 1 TB of data analyzed each month and 10 GB of data stored. | |
Google BigQuery gives you full view of all your data by seamlessly querying data stored in BigQuery’s managed columnar storage, | |
------ | |
1. export log entries | |
Created an export of the log we need in Stackdriver from log viewer. | |
Exports logs by creating a sink that includes a log filter and an export destination. |