pyenv local 3.10 --- set in curr dir
pyenv versions ---- list all available
pyenv install 3.9
(!!!) first set up your python version if using pyenv (!!!)
python3 -m venv .venv
source .venv/bin/activate
deactivate
acpi_listen # enter and press key you want to get code of
https://wiki.gentoo.org/wiki/ACPI/ThinkPad-special-buttons - great tutorial
pip install --upgrade $(pip freeze | awk '{split($0, a, "=="); print a[1]}')
git reset --hard # forgets local changes
git fetch origin
git pull origin <branch_name>
/dev/video0 ...common camera
/dev/video2 ...IR camera
# this command will make that IR diode will self activate when the video stream is requested in for instance VLC or google meet:
chicony-ir-toggle -d /dev/video2 on
# this cmd was compiled from source by me on 20240106 from there>> https://github.com/PetePriority/chicony-ir-toggle
# device manager - alternative
sudo lshw
lspci # pci devices
lsusb # usb devices
ssh [email protected]
sudo nvme list
sudo nvme smart-log /dev/nvmeXXX
xfce4-panel --quit ; pkill xfconfd ; rm -rf ~/.config/xfce4/panel ; rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ; xfce4-panel
https://forums.linuxmint.com/viewtopic.php?t=344023
clamscan MyFile.txt
clamscan suspiciousdir
[myname@server]$ nohup taskset -c 1,2 python measure_script.py &
--- this is how to run in background (nohup &) a task (py...) on remote server on logical cores 1 and 2
scp platform_info.py [email protected]:~/working_dir
--- this is how to send a file to the remote server (directly inside specified directory)
scp -r [email protected]:~/remote_dir/ ./my_local_dir
--- move directory remote_dir to my_local_dir (NO -r IF COPYING SINGLE FILE)
- connect local machine through VPN to UTIA
- connect via ssh [email protected]
- activate the conda env: conda activate my_custom_env
- start jupyterlab on server and specify the port:
jupyter lab --no-browser --port=8888 --ip=0.0.0.0
- in another terminal locally, go for this:
ssh -L 8888:localhost:8888 [email protected]
- lastly, open link to the jupyterlab in your local browser (something like
http://127.0.0.1:8888/lab
)
link: https://pandoc.org/demos.html I tried:
pandoc -s DP_AG.tex -o example2.docx
pandoc -s Layout_AG.docx -o example3.tex
LaTeX to Word works surprisingly well...
sudo apt install qemu-system
sudo apt install virt-manager (just GUI interface to manage 'qemu-system')
sudo fstrim -v /
(-v means verbose, ie. it will speak)
sudo smartctl -a /dev/nvme0n1
powerprofilesctl