Subtitle delay shortcut: g and h
apt install gvfs-backendsThese commands are for Windows user - Documentation
If you want to change the moogoDB config, for example, the bindIp
net stop mongodb # You need to run it as admin<install directory>\bin\mongod.cfgRemember it's a YAML file, so you need to produce a correct file. no tabs but spaces !. You need to have admin rights to change the config file
net start mongodb # You need to run it as adminDownload 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 DERRun sha256sum on the DER file
sha256sum certificate.derCompare 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.derRun sha256sum on the public key
sha256sum publickey.derCompare the hash with the one from the browser
Set up the monitor mode on your wifi interface
# first you need to disconnect from any wifi network
# then as root
apt install iw
# see the interface
iw dev
INTERFACE="wlan0"
# change to monitor mode
ip link set "$INTERFACE" down
iw "$INTERFACE" set monitor none
ip link set "$INTERFACE" up
# see the interface "type"
iw dev
iw dev | grep 'type monitor'
# go back to managed mode
ip link set "$INTERFACE" down
iw "$INTERFACE" set type managed
ip link set "$INTERFACE" upapt install console-datapower_save setting, so we need to disable it# should be root
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
echo "options snd_hda_intel power_save=0" | tee -a /etc/modprobe.d/audio_disable_powersave.conf # make it persist
- Reference: https://askubuntu.com/a/1230834
Useful commands
# check nginx config before restart
nginx -t
server nginx restartConf 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 OnThe 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 8000echo `# <#`
# bash code
exit
#> > $null
# powershell codeIn "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true in ~/.config/discord/settings.json
sshuttle --dns -r user@host 0/0 -vvvv -x 0/0:22# don't forget to quote the playlist URL
yt-dlp --yes-playlist -f ba -x --audio-format m4a -o "%(playlist_index)s_%(title)s.%(ext)s" "PLAYLIST"