Subtitle delay shortcut: g
and h
sudo apt install gvfs-backends
Download the certificate from the browser
The certificate is in PEM format, a human readable format (base64) but also sometimes with CRLF line endings
Convert the certificate to a DER format (binary)
openssl x509 -in certificate.pem -out certificate.der -outform DER
Run sha256sum on the DER file
sha256sum certificate.der
Compare the hash with the one from the browser
Now the public key (which is inside the certificate)
Extract the public key from the certificate
openssl x509 -in certificate.der -pubkey -noout | openssl enc -base64 -d > publickey.der
Run sha256sum on the public key
sha256sum publickey.der
Compare the hash with the one from the browser
apt install console-data
power_save
setting, so we need to disable itsudo su
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
echo "options snd_hda_intel power_save=0" | sudo tee -a /etc/modprobe.d/audio_disable_powersave.conf # make it persit
- Reference : https://askubuntu.com/a/1230834
Useful commands
# check nginx config before restart
nginx -t
server nginx restart
Conf example
merge_slashes off; # useful for a reverse proxy
location / {
proxy_pass http://localhost:4200/;
}
Authorization
header to PHPYou need to add in your .htaccess
:
CGIPassAuth On
The webhook package is a useful utility package which create a server listening on 9000 and allow you to create responses to webhook.
Useful commands for the package
# edit the default conf file, can be yaml or json
nano /etc/webhook.conf
# to debug
# edit the service file
nano /etc/systemd/system/multi-user.target.wants/webhook.service
# add -verbose to ExecStart
# restart
systemctl restart webhook
# get verbose output
systemctl status webhook
# ngrock (need install)
ngrok http 80
# localtunnel package (npx of bunx)
npx localtunnel --port 8000
bunx localtunnel --port 8000