will be 800x600 by default (stretched) :(
to fix it:
1. install `915resolution` from apps as 'OnBoot'
2. open `/opt/bootlocal.sh` and add:
```sh
| test -f main.lua || { echo "[!] no main.lua found in current dir..aborting"; exit 1; } | |
| adb shell rm -rf sdcard/Android/data/org.lovr.app/files | |
| adb shell mkdir sdcard/Android/data/org.lovr.app/files | |
| # we tar (not adb push --sync) to prevent running cached/outdated files | |
| tar --exclude='.git' -chf - . | adb shell "cd /sdcard/Android/data/org.lovr.app/files && tar -xf -" | |
| adb logcat -c # clear old output | |
| adb shell am start -S org.lovr.app/org.lovr.app.Activity # start lovr app | |
| adb logcat -s LOVR # output log |
| # download: https://github.com/AlexxIT/go2rtc/releases | |
| # homepage: https://go2rtc.org | |
| # usage: go2rtc -c go2rtc.yaml | |
| api: | |
| listen: "127.0.0.1:1989" | |
| log: | |
| level: "debug" |
| #!/usr/bin/env -S awk -f | |
| BEGIN { RS = "<" } | |
| NR > 1 { | |
| # Find the end of the opening/closing tag | |
| idx = index($0, ">") | |
| if (idx > 0) { | |
| v = substr($0, 1, idx-1) # Everything inside < ... > | |
| txt = substr($0, idx+1) # Everything after > | |
| if (v ~ /^\//) { |
| #!/bin/sh | |
| # for original version see: https://redo.readthedocs.io/en/latest/ | |
| source ./.env | |
| exitcmd(){ echo; } | |
| build(){ | |
| exitcmd(){ echo "\$ ./default.do" && sh $VERBOSE ./default.do; } | |
| runner=default.do.${1##*.} | |
| test -f $runner && echo "\$ ./$runner $dep" && sh $VERBOSE ./$runner $dep | |
| } | |
| case "$1" in |
| #!/bin/sh | |
| lastrelease_commit="18e237e" | |
| set -x | |
| set -e | |
| test -d janusweb && rm -rf janusweb | |
| git clone https://github.com/jbaicoianu/janusweb janusweb | |
| cd janusweb | |
| git reset $lastrelease_commit --hard |
Any topics/comments welcome for upcoming meeting
Time/Date: TBA
| textFragment("foo bar hello spatial world flop flap", '#:~:text=hello,world') | |
| // hello spatial world | |
| textFragment("foo bar hello spatial world flop flap", '#:~:text=hello spatial,flap') | |
| // hello spatial world flop flap | |
| // naive implementation: this only supports the main usecase: begin/end | |
| var textFragment = function(text, fragment) { | |
| if (!fragment.match(/^#:~:text=/)) return text; | |
| fragment = fragment.replace(/^#:~:text=/, ''); // remove prefix |
| #!/bin/sh | |
| test -n "$1" || { echo "Usage: ./janusxr_linkcheck.sh <url>"; exit 0; } | |
| agent=$(basename $(which curl || which wget)) | |
| if test $agent = curl; then $agent "$1" -s > /tmp/out.html; fi | |
| if test $agent = wget; then $agent "$1" -O /tmp/out.html; fi | |
| for attr in src url; do | |
| grep -E ${attr}= /tmp/out.html | sed 's|.*'$attr'="||g;s|".*||g'; | |
| done | while read url; do |
| # | |
| # autoenv alias for 'cd' (basically conda/nix-shell/virtual-env triggered by cd) | |
| # | |
| # usage: put this in your .bashrc and see magic happening when 'cd'-ing to directories | |
| # | |
| cd(){ | |
| if [[ ! "$(readlink -f "$1")" =~ ^"$(pwd)" ]]; then # if not cd'ing to a subdir | |
| test -f .env.leave && source .env.leave # cleanup environment | |
| fi |