Headless Linux external USB drive automount
Reviewed by KimWorks
on
May 23, 2024
Rating: 5
Ollama Model Update script
Reviewed by KimWorks
on
May 08, 2024
Rating: 5
VLock: Command line virtual console lock
Reviewed by KimWorks
on
May 05, 2024
Rating: 5
Linux & Powerprofile
$ sudo apt install power-profiles-daemon
$ powerprofilesctl set power-saver
$ powerprofilesctl
$ more /proc/cpuinfo | grep "cpu MHz"
Reference
- Enable hibernate, https://ubuntuhandbook.org/index.php/2021/08/enable-hibernate-ubuntu-21-10/
- CPU power mode, https://ubuntuhandbook.org/index.php/2023/10/command-cpu-power-mode-ubuntu-22-04/
Linux & Powerprofile
Reviewed by KimWorks
on
May 04, 2024
Rating: 5
UPS and LINUX
Install upower
sudo apt-get install upower
Commands:
$ upower -e
$ upower -d
$ upower -i <object>
Configuration
/etc/UPower/UPower.conf
Service
$ sudo systemctl restart upower.service
$ sudo systemctl status upower.service
Alias
alias battery='upower -d | grep -m 2 -e '\''percentage'\'' -e '\''time to empty'\'' | sed '\''s/^[ \t]*//'\'''
UPS and LINUX
Reviewed by KimWorks
on
May 04, 2024
Rating: 5
Markdown file view in Windows terminal
For PowerShell v6.1 or later, use command like this:
> Show-Markdown [file name]
From CMD, you can call the cmdlet like below, after installing PowerShell 7.4:
"C:\Users\<your username>\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe" -Command "Show-Markdown %1"
You can install the latest PowerShell,
- Using App Store
winget search Microsoft.PowerShell
winget install --id Microsoft.Powershell --source winget
Or, you can use this utility, https://github.com/charmbracelet/glow
Markdown file view in Windows terminal
Reviewed by KimWorks
on
April 28, 2024
Rating: 5
Subscribe to:
Posts
(
Atom
)