sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| # ---------------------------------- | |
| # Colors | |
| # ---------------------------------- | |
| NOCOLOR='\033[0m' | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| ORANGE='\033[0;33m' | |
| BLUE='\033[0;34m' | |
| PURPLE='\033[0;35m' | |
| CYAN='\033[0;36m' |
| # Install git - Alpine linux | |
| apk add --update git | |
| # Power combo: Auto-suggestions & Syntax highlighting | |
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
| # Moved. See: https://github.com/N0rthernL1ghts/docker-env-secrets/blob/master/src/init-docker-secrets-run.sh |
This very detailed guide was originally written by Chris Faulds and used to be available at cfdesign.work/derancilio. Unfortunately, his website is no longer online. Thanks to the Wayback Machine the article is still readable. But since the presentation is a bit wonky, I decided to mirror his awesome tutorial is this gist.
Chris has spent a huge amount of time writing an in-depth instruction on how to take the machine apart, which may also come in handy for other repairs for the Dedica 680/685. Again all credits go to him. Thanks a lot for the great work!
Monday 1st August 2016
| #!/usr/bin/env sh | |
| set -e | |
| LOCATION="$(echo ${1:-} | sed -e 's/ /%20/g')" | |
| curl --get "https://wttr.in/${LOCATION}" | |
| exit $? |
| # Source: https://stackoverflow.com/a/66101344/1797452 | |
| # Mostly useful for Docker so installation of some packages that require systemd is possible. | |
| # When systemctl is run, it will ALWAYS execute successfuly. | |
| ln -s /bin/true /sbin/systemctl |
Drop unecessary privileges: https://www.redhat.com/en/blog/secure-your-containers-one-weird-trick