(macOS)
while true; do printf 'HTTP/1.1 200 OK\r\n\r\n'; cat <file>; | nc -l 10100; done
(linux)
while true; do printf 'HTTP/1.1 200 OK\r\n\r\n' && cat <file> | nc -l -p 10100; done
| brew install ccat curl wget fd ripgrep exercism go hashcat htop httpie jq tig pstree tree youtube-dl zshscala maven shellcheck | |
| brew cask install tunnelblick vlc virtualbox meteorologist intellij-idea-ce firefox mullvad firefoxdeveloperedition | |
| # https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilities | |
| # brew reinstall --with-default-names coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt | |
| brew install findutils --with-default-names | |
| brew install gnu-indent --with-default-names | |
| brew install gnu-sed --with-default-names | |
| brew install gnutls |
| # show phases during compiling | |
| scalac -Xshow-phases | |
| # print after phase e.g. typer | |
| scala -Xprint:typer | |
| for more see: man scalac |
(macOS)
while true; do printf 'HTTP/1.1 200 OK\r\n\r\n'; cat <file>; | nc -l 10100; done
(linux)
while true; do printf 'HTTP/1.1 200 OK\r\n\r\n' && cat <file> | nc -l -p 10100; done
| urlencode='python3 -c "import sys, urllib.parse as ul; print(ul.quote_plus(sys.argv[1]))"' | |
| urldecode='python3 -c "import sys, urllib.parse as ul; print(ul.unquote_plus(sys.argv[1]))"' |
| Preferences -> Profiles -> Terminal tab -> Check "Silence bell" |
| #!/usr/bin/env bash | |
| set -EeuCo pipefail |
| # $ brew list CW 39|30.09.18|22:07:26 | |
| ammonite-repl | |
| ansible | |
| apr | |
| apr-util | |
| autoconf | |
| automake | |
| bash | |
| bat | |
| binutils |
https://github.com/pi-hole/pi-hole https://www.kuketz-blog.de/pi-hole-schwarzes-loch-fuer-werbung-raspberry-pi-teil1/
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
#AcceptEnv LANG LC_* in /etc/ssh/sshd_config | import cats._ | |
| import cats.syntax.flatMap._ | |
| import cats.syntax.functor._ | |
| import cats.syntax.applicative._ | |
| def sumSquare[F[_]: Monad](a: F[Int], b: F[Int]): F[Int] = { | |
| a.flatMap(x => b.map(y => x*x + y*y)) | |
| } | |
| import cats.instances.list._ |
| import cats._ | |
| val eager = Eval.now { | |
| println("Hey !! I am eager eval") | |
| "Hello Eval Eager" | |
| } | |
| val lazyEval = Eval.later { | |
| println("Hey !! I am lazy eval") | |
| "Hello Eval Lazy" |