config update

This commit is contained in:
Gregor Feierabend 2021-06-17 01:00:47 +02:00
parent 381761ef16
commit 95a25da0f1
6 changed files with 36 additions and 1 deletions

1
.scripts/adbreconnect.sh Executable file
View File

@ -0,0 +1 @@
adb root && adb shell svc data disable && adb shell svc data enable

4
.scripts/emulator.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/zsh
emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load
#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window
adb kill-server

4
.scripts/emulator_snap.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/zsh
emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window
adb kill-server

View File

@ -1,3 +1,5 @@
#!/bin/zsh
emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load -detect-image-hang
emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -detect-image-hang -use-system-libs -cores 4
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window
adb kill-server

11
.scripts/uncolor.pl Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env perl
## https://stackoverflow.com/questions/17998978/removing-colors-from-output
## uncolor — remove terminal escape sequences such as color changes
while (<>) {
s/ \e[ #%()*+\-.\/]. |
\e\[ [ -?]* [@-~] | # CSI ... Cmd
\e\] .*? (?:\e\\|[\a\x9c]) | # OSC ... (ST|BEL)
\e[P^_] .*? (?:\e\\|\x9c) | # (DCS|PM|APC) ... ST
\e. //xg;
print;
}

13
.scripts/unctex.pl Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env perl
## https://stackoverflow.com/questions/17998978/removing-colors-from-output
## uncolor — remove terminal escape sequences such as color changes
print "\\begin{minted}{bc}\n";
while (<>) {
s/ \e[ #%()*+\-.\/]. |
\e\[ [ -?]* [@-~] | # CSI ... Cmd
\e\] .*? (?:\e\\|[\a\x9c]) | # OSC ... (ST|BEL)
\e[P^_] .*? (?:\e\\|\x9c) | # (DCS|PM|APC) ... ST
\e. //xg;
print;
}
print "\\end{minted}";