First of all this is about windows. If you ever have multiple key and you want to login using password you will have this password by default . I was searching how to disable this, but there is no click . So the easy way is to create a shortcut , edit and add to the target this parameter -noagent . After you start the putty using that shortcut , you will have the pageant disabled .
February 2, 2021
July 14, 2020
redirect to https
I have more versions of redirect
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.matrafox.info/$1 [R,L]
Other version is
#non-www. http to www. https
RewriteCond %{ENV:HTTPS} !on
RewriteCond %{HTTP_HOST} ^(www.)?matrafox.info$
RewriteRule (.*) https://www.matrafox.info/$1 [R=301,L]
#non-www. https to www. https
RewriteCond %{ENV:HTTPS} on
RewriteCond %{HTTP_HOST} ^matrafox.info$
RewriteRule (.*) https://www.matrafox.info/$1 [R=301,L]
Other version is
RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^ https://www.example.com%{REQUEST_URI} [NC,L,R=301,NE]
Another one :
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
June 2, 2020
Change docker root directory by creating a systemd drop-in service file
It is possible to change docker root directory by creating a systemd drop-in service file. This is useful when you want images and containers or docker generated files to be located in another partition or drive.
Create drop-in configuration file
- Create the systemd directory:
sudo mkdir /etc/systemd/system/docker.service.d/
- Create the docker.service drop-in file:
sudo nano /etc/systemd/system/docker.service.d/docker.root.conf
- Add the following configuration :
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -g /your/custom/docker/root -H fd://
April 23, 2020
⚠ pngquant pre-build test failed ℹ compiling from source ✔ pngquant pre-build test passed successfully ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
I have try today a yarn install but have some error . The fix was to run
apt install -y build-essential gcc make libpng-dev
April 21, 2020
BFD – r-fx network ignore cdir
I personally like the r-fx project with apf / bfd firewall . I am using from long time and is great. One of the feature that is missing is that you can not exclude cdir format from bfd. My workarround was to install the grepcidr package and then on line 137 of /usr/local/bfd/bfd to modify it from
CHKHOST_IGNORE=`cat $file | grep -v “#” | grep -w $ATTACK_HOS`
into
CHKHOST_IGNORE=`/usr/bin/grepcidr -f $file <(echo $ATTACK_HOST)`
After this you can add x.x.x.x/y format