From b98727858e177804e2975736384de8e2dfac99be Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 12 Nov 2021 20:27:06 +0800 Subject: update --- alias | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/alias b/alias index 779bd09..d55fd43 100644 --- a/alias +++ b/alias @@ -243,6 +243,8 @@ alias adb.list='adb shell dumpsys package d' alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' alias adb.screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` .' alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` .' +alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` .' +alias adb.input='adb shell input text' adb.push() { adb push $1 /sdcard/Download } @@ -306,15 +308,17 @@ alias xo='xsel -ob' alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied to clipboard && xsel -ob' # image -image_vertical() { +image.vertical() { suffix=${1##*.} convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} } -image_horizontal() { +image.horizontal() { convert "$@" +append output.png } -image_from_data_url() { +image.from_data_url() { + [[ $1 == '' ]] && echo File name needed && return 1 xsel -ob | sed -E 's/^.+,//' | base64 -d >$1 + identify $1 } # thunderbird -- cgit v1.2.3-70-g09d2 From 543aacda793fe360cc1d970a2888c20a1e21b1b1 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 12 Nov 2021 20:29:16 +0800 Subject: update --- tigrc | 1 + 1 file changed, 1 insertion(+) diff --git a/tigrc b/tigrc index 52a98ec..8e58390 100644 --- a/tigrc +++ b/tigrc @@ -57,6 +57,7 @@ bind generic w :toggle ignore-case # see reflog, reset refernece bind generic gl ?git checkout HEAD@{"%(prompt Enter HEAD@{} number: )"} bind generic gL ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} +bind reflog c ?git checkout %(commit) # highlight diff without +/- # set diff-show-signs = false -- cgit v1.2.3-70-g09d2 From b3daabdeec6d8c821a76bdc27840d7628f21090d Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 13 Nov 2021 11:20:00 +0800 Subject: update --- alias | 2 +- tools/osm/osm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/alias b/alias index ff4347f..9414752 100644 --- a/alias +++ b/alias @@ -113,7 +113,7 @@ alias pfl='pacman -Fl' alias pqe='pacman -Qqe' alias pR='sudo pacman -R' psi() { - pqe | grep $1 >/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)" + [[ $(pacman -Qqe $1) != '' ]] 2>/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)" pacman -Si $1 } diff --git a/tools/osm/osm b/tools/osm/osm index a595fb7..344f906 100644 --- a/tools/osm/osm +++ b/tools/osm/osm @@ -1,7 +1,8 @@ #! /bin/sh -#export OSM_SERVER=https://master.apis.dev.openstreetmap.org +export OSM_TEST_SERVER=https://master.apis.dev.openstreetmap.org export OSM_SERVER=https://api.openstreetmap.org +export OSM_TES_SERVER=https://api.openstreetmap.org export OSM_API=$OSM_SERVER/api/0.6 export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm 2>/dev/null) -- cgit v1.2.3-70-g09d2