worked like a charm for me.sudo apt-get install rlwrap
rlwrap sqlite3 database.db
Stern HPC moving to Slurm for scheduling
5 years ago
A few Day-to-Day life tricks of Linux.
worked like a charm for me.sudo apt-get install rlwrap
rlwrap sqlite3 database.db
harsshal@dell:~$ ll /sys/class/backlight/
lrwxrwxrwx 1 root root 0 Mar 18 12:58 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/lrwxrwxrwx 1 root root 0 Mar 18 12:58 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/
harsshal@dell:~$ ll /sys/class/backlight/*/max_brightness -r--r--r-- 1 root root 4096 Mar 18 12:58 /sys/class/backlight/acpi_video0/max_brightness-r--r--r-- 1 root root 4096 Mar 18 12:58 /sys/class/backlight/intel_backlight/max_brightness
harsshal@dell:~$ cat /sys/class/backlight/*/max_brightness 7255000
harsshal@dell:~$ echo 7 | sudo tee /sys/class/backlight/acpi_video0/brightness 7
harsshal@dell:~$ xbacklight -set 60
harsshal@dell:~$ xrandr -q | grep -w connectedLVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 290mm x 180mmharsshal@dell:~$ xrandr --output LVDS-1 --brightness 1
set WshShell = WScript.CreateObject("WScript.Shell") x = 1 do while x = 1 'Loop forever and ever and ever and ever WshShell.SendKeys "%^" 'SEND CTL + ALT WScript.Sleep 290000 '<5 MINS loopI placed this script at location
C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup