- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
See how much the computer is being used but without specific program precision
Related to Benjamin_Loison/slurm/issues/2.
Emulate scrollable screenshot
Let us prefer clicking on Capture more text middle than the associated symbol.
get_middle()
{
xpath=$1
ui=`adb exec-out uiautomator dump /dev/tty
Emulate scrollable screenshot
I edited above take_scrolling_screenshot to work fine with spaces in file name.
Emulate scrollable screenshot
adb: error: failed to stat remote object '/sdcard/Pictures/Screenshots/Screenshot_20251107-211406_Permission': No such file or directory
adb pull "/sdcard/Pictures/Screenshots…
Emulate scrollable screenshot
/sdcard/Pictures/Screenshots/ CLOSE_WRITE,CLOSE .pending-1763150818-Screenshot_20251107-210658_F-Droid.png
~/.bashrc:
get_middle(…
inotifywait
FILE=libinotifytools.so
curl https://packages.termux.dev/apt/termux-main/pool/main/i/inotify-tools/inotify-tools_4.25.9.0_aarch64.deb
inotifywait
file libc++_28c-1_aarch64.deb
libc++_28c-1_aarch64.deb: Debian binary package (format 2.0), with control.tar.xz/, data compression xz
DuckDuckGo search *Linux extract…
inotifywait
The Unix Stack Exchange answer 61464:
tar -xvf libc++_28c-1_aarch64.deb data/data/com.termux/files/usr/lib/libc++_shared.so
inotifywait
I checked that:
adb shell touch /data/local/tmp/my_file
adb shell ls -lh /data/local/tmp/
Output:
total 4
drwxrwxrwx 3 shell shell 4.0K…
inotifywait
I would like my setup to resist reboots for #29.
adb shell touch /data/local/my_file
touch: '/data/local/my_file': Permission denied
Emulate scrollable screenshot
\d and \\d do not work in the following.
Bash script:
REGEX="\[([0-9]+),([0-9]+)\]\[([0-9]+),([0-9]+)\]"
bounds='[12,34][56,78]'
if [[ $bounds =~…
Emulate scrollable screenshot
xmlstarlet select --template --value-of '//node[@text="Screenshot"]/@bounds' input.xml
[712,415][808,434]
DuckDuckGo and Google search Linux grep to variables and…