marp | theme |
---|---|
true |
default |
Powered by kroki.io
marp | theme |
---|---|
true |
default |
Powered by kroki.io
#!/bin/bash | |
uri=$1 | |
echo $uri | |
echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --insecure-registry $uri" | sudo SYSTEMD_EDITOR=tee systemctl edit docker | |
sudo systemctl daemon-reload || failed "failed to reload docker" | |
sudo systemctl restart docker || failed "failed to restart docker" | |
sudo systemctl status docker || failed "failed to status docker" |
image=$1 | |
echo $1 | |
img=`echo $image | sed 's/k8s\.gcr\.io/anjia0532\/google-containers/g;s/gcr\.io/anjia0532/g;s/\//\./g;s/ /\n/g;s/_/-/g;s/anjia0532\./anjia0532\//g' | uniq | awk '{print ""$1""}'` | |
echo "docker pull $img" | |
docker pull $img | |
echo "docker tag $img $image" | |
docker tag $img $image |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
#!/bin/bash | |
# explain.sh begins | |
explain () { | |
if [ "$#" -eq 0 ]; then | |
while read -p "Command: " cmd; do | |
curl -Gs "https://www.mankier.com/api/explain/?cols="$(tput cols) --data-urlencode "q=$cmd" | |
done | |
echo "Bye!" | |
elif [ "$#" -eq 1 ]; then | |
curl -Gs "https://www.mankier.com/api/explain/?cols="$(tput cols) --data-urlencode "q=$1" |
SlideShare
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: