Tuesday, September 21, 2021

wget: Download full page in a loop

for p in {1..96};do wget -p -k -H -e robots=off https:///page${p}.html;done

Thursday, August 26, 2021

Monday, August 23, 2021

rdesktop: Arch linux no sound from remote

The package that comes with arch does not support pulse audio: rdesktop-vrdp -help

'-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection
remote would leave sound on server
available drivers for 'local':
oss: OSS output driver, default device: /dev/dsp or $AUDIODEV
I ended up compling rdesktop from https://github.com/rdesktop/rdesktop: # run `autoreconf` -i first if configure is missing
./configure --with-sound
make
sudo make install
This resulted in pusle support: '-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection
remote would leave sound on server
available drivers for 'local':
pulse: PulseAudio output driver, default device: system dependent
alsa: ALSA output driver, default device: default
oss: OSS output driver, default device: /dev/dsp or $AUDIODEV
libao: libao output driver, default device: system dependent
Use: /opt/myrdesktop/bin/rdesktop -u "user_name" -r sound:local:pulse windows_ip_addr

Monday, May 31, 2021

Friday, March 26, 2021

Saturday, December 19, 2020

Jyputer: Don't ask for password nor token

alias jn='jupyter notebook --no-browser --ContentsManager.allow_hidden=True --NotebookApp.password="" --NotebookApp.token=""'

Tuesday, December 15, 2020

rsync: make backup to remote server

rsync -avzhe ssh --progress ./folder_to_backup/ user@server-ip:./folder_on_server

Sunday, November 29, 2020

Vino: Disable remote access confirmation

gsettings set org.gnome.Vino notify-on-connect false gsettings set org.gnome.Vino prompt-enabled false

Monday, January 06, 2020

mkvpropedit: mkv disable subtitles

mkvpropedit movie.mkv --edit track:s1 --set flag-default=0