How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
-
Edit the configuration file:
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
WIP
VP9 encode is very very slow ?
Yes and no. Unlike x265 use all core to speed up encode time, the low threaded libvpx-vp9 use for me 4 core of my Ryzen 3900X. Encode 4 video in the same time -> x4 "boost".
Force dynamic bitrate with b:v 0
Set quality level with -crf <quality level>
is a integer (0 to 63)
libvpx use -deadline
and ffmpeg -quality
need to be set to good.
#!/usr/bin/env sh | |
git clone https://github.com/mferland/libzc.git | |
cd libzc | |
./autogen.sh | |
./configure CFLAGS='-Ofast -march=native -mtune=native' | |
make | |
sudo make install |
version: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy:alpine | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" |
#!/usr/bin/env bash | |
# Install re2c | |
cd /tmp && | |
git clone --depth 1 https://github.com/skvadrik/re2c.git && | |
cd re2c/re2c && | |
./autogen.sh && | |
./configure --prefix=/usr && | |
make -j$(nproc) && make install && | |
rm -rf /tmp/re2c |
#!/usr/bin/zsh | |
mkdir -p old | |
for var in $(ls *.srt | awk -F ".srt" '{print $1}') | |
do | |
mkvmerge --priority higher \ | |
-o "$(print $var)1.mkv" \ | |
"$(print $var).mkv" \ | |
--language 0:eng \ | |
--default-track 0:true \ |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE > backup.sql | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | gzip > backup.sql.gz | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | bzip2 > backup.sql.bz2 | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
gunzip < backup.sql.gz | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
bunzip2 < backup.sql.bz2 | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE |
#!/bin/bash | |
# To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x | |
ARGS="" | |
while test $# -gt 0 | |
do | |
ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path | |
shift | |
done |
#!/usr/bin/env bash | |
set -e | |
export DISTRO_NAME=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
curl -fsSL https://download.docker.com/linux/$DISTRO_NAME/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$DISTRO_NAME $(lsb_release -cs) stable" | |
sudo apt-get update -y | |
sudo apt-get install -y docker-ce jq sed | |
sudo usermod -aG docker ${USER} |
#!/usr/bin/env bash | |
set -e | |
# names of latest versions of each package | |
export NGINX_VERSION=1.13.5 | |
export VERSION_ZLIB=zlib-1.2.11 | |
export VERSION_PCRE=pcre-8.41 | |
export VERSION_LIBRESSL=libressl-2.6.1 | |
export VERSION_NGINX=nginx-$NGINX_VERSION |