nc -l 8080 > <new file>
cat <existing file> | nc < receiver IP address > 8080
1. Close Spotify. | |
2. Locate the Spotify prefs file: | |
~/Library/Application Support/Spotify/prefs | |
3. Open the file in your favorite text editor | |
4. Add another line and put a value in megabytes right after the equals sign. I chose 1024mb. |
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" |
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._ |
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
# $ brew list CW 39|30.09.18|22:07:26 | |
ammonite-repl | |
ansible | |
apr | |
apr-util | |
autoconf | |
automake | |
bash | |
bat | |
binutils |
#!/usr/bin/env bash | |
set -EeuCo pipefail |
Preferences -> Profiles -> Terminal tab -> Check "Silence bell" |
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]))"' |
(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