| Shortcut | Description |
|---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const browser = await puppeteer.launch({headless: false}); | |
| const page = await browser.newPage(); | |
| await page.goto('https://takeout.google.com/'); | |
| const input = await page.evaluate(() => { | |
| const next = document.querySelector('#identifierNext'); |
Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).
To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).
$ sudo apt install qemu-guest-agent
$ sudo apt install spice-vdagent
DST=/mnt
find /var/lib -type f -size +1G -exec ls -lh {} \; | tee $DST/bigfiles_var_lib_$(date "+%H%M").log
find /var/lib -type f -size +1G -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' | sort -rh > $DST/bigfiles_var_lib_$(date "+%H%M").sorted.log
| #!/bin/bash | |
| # Fixes texture corruption in VS Code terminal after resuming from suspend. | |
| # | |
| # Place script in /lib/systemd/system-sleep/ so it can run after resuming. | |
| # | |
| # Dependencies: jq | |
| case "$1" in |
Turn your smartphone or tablet (e.g., Iphone, Ipad, Samsung, Motorola, etc) camera into a WebCam to make video conference (e.g., Google Meeting, Zoom, Discord, etc) in Linux.
Examples:
Here are the steps needed to run a self hosted Open Street Map server (using Docker):
-
Download desired
pbffiles (likesouth-carolina-latest.osm.pbf) from https://download.geofabrik.de or just use the following empty planet below:<?xml version='1.0' encoding='UTF-8'?> <osm version="0.6" generator="osmconvert 0.8.8" timestamp="2019-10-23T20:18:02Z"> <bounds minlat="42.4276" minlon="1.412368" maxlat="42.65717" maxlon="1.787481"/> </osm>
| # Uninstall all nvidia packages, old drivers, etc. | |
| # list all the packages with nvidia in the name | |
| dpkg -l | grep -i nvidia | |
| sudo apt-get remove --purge nvidia* | |
| sudo apt-get remove --purge cuda* | |
| sudo apt-get remove --purge libnccl* |
| import requests | |
| import os | |
| from collections import defaultdict | |
| # I have photos in subfolders like : | |
| # /mnt/media/Photos/2023-08 Holidays | |
| # /mnt/media/Photos/2023-06 Birthday | |
| # /mnt/media/Photos/2022-12 Christmas | |
| # This script will create 3 albums | |
| # 2023-08 Holidays, 2023-06 Birthday, 2022-12 Christmas |
| CMD prompt - verify WSL2 is installed | |
| `wsl --list --verbose` | |
| or | |
| `wsl -l -v` | |
| git clone CUDA samples - I used location at disk d:\\LLM\\Ollama , so I can find samples with ease | |
| `d: && cd d:\LLM\Ollama` | |
| `git clone --recursive -j6 https://github.com/NVIDIA/cuda-samples.git` |