diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-01-25 10:12:51 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-01-25 10:12:51 +0800 |
commit | 1b99426c6b5b375a2c8be0498e2cf2f348fdaaa1 (patch) | |
tree | 8b86cc9fd067eabe0c9cdf6f7759f67666941eca | |
parent | 6c023dc3914aa625e95fee401c5af4fe0d938f38 (diff) | |
parent | 40eb94c8f4ee4155e709a9d5885f232b7c441aac (diff) |
Merge remote-tracking branch 'origin/dev' into dev
-rw-r--r-- | alias | 12 | ||||
-rw-r--r-- | misc/cron | 2 | ||||
-rwxr-xr-x | tools/init/load-settings.sh | 2 |
3 files changed, 7 insertions, 9 deletions
@@ -34,7 +34,8 @@ alias g='gist' | |||
34 | alias gl='gist last' | 34 | alias gl='gist last' |
35 | 35 | ||
36 | # shell | 36 | # shell |
37 | alias s='sudo' | 37 | alias s='sudo systemctl' |
38 | alias j='sudo journalctl -xe' | ||
38 | alias path="echo $PATH" | 39 | alias path="echo $PATH" |
39 | alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd" | 40 | alias fd="echo /proc/$$/fd; ls -l /proc/$$/fd" |
40 | alias src="source $HOME/.$(basename $SHELL)rc" | 41 | alias src="source $HOME/.$(basename $SHELL)rc" |
@@ -118,7 +119,7 @@ alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to | |||
118 | 119 | ||
119 | # github | 120 | # github |
120 | export GITHUB_API='https://api.github.com' | 121 | export GITHUB_API='https://api.github.com' |
121 | export GITHUB_API_TOKEN=$(cat $SETTING_DIR/tokens/github 2>/dev/null) | 122 | export GITHUB_API_TOKEN="$(cat $SETTING_DIR/tokens/github 2>/dev/null)" |
122 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" | 123 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" |
123 | alias github_token='xdg-open https://github.com/settings/tokens' | 124 | alias github_token='xdg-open https://github.com/settings/tokens' |
124 | github() { | 125 | github() { |
@@ -278,7 +279,8 @@ alias xc='xsel -ob | gcc -xc -' | |||
278 | 279 | ||
279 | # image | 280 | # image |
280 | image_vertical() { | 281 | image_vertical() { |
281 | convert "$@" -append output.png | 282 | suffix=${1##*.} |
283 | convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} | ||
282 | } | 284 | } |
283 | image_horizontal() { | 285 | image_horizontal() { |
284 | convert "$@" +append output.png | 286 | convert "$@" +append output.png |
@@ -346,18 +348,14 @@ short() { | |||
346 | 348 | ||
347 | # tmp | 349 | # tmp |
348 | alias and='cd ~/git/geoBingAn.Android' | 350 | alias and='cd ~/git/geoBingAn.Android' |
349 | alias cdo='cd ~/git/openmaptiles' | ||
350 | alias cdS='cd ~/git/StreetComplete' | 351 | alias cdS='cd ~/git/StreetComplete' |
351 | alias cdW='cd ~/git/geoBingAnWeb' | ||
352 | alias cdT='cd ~/git/taiwan-topo' | 352 | alias cdT='cd ~/git/taiwan-topo' |
353 | alias cdand='cd ~/git/sample' | 353 | alias cdand='cd ~/git/sample' |
354 | alias cdm='cd ~/git/mapstew' | 354 | alias cdm='cd ~/git/mapstew' |
355 | alias cdma='cd ~/git/mapstew-android' | 355 | alias cdma='cd ~/git/mapstew-android' |
356 | alias cdT='cd ~/git/tilemaker' | 356 | alias cdT='cd ~/git/tilemaker' |
357 | alias cdL='cd ~/Insync/pham@geothings.tw/Google\ Drive\ -\ Shared\ drives/LEOTEK' | ||
358 | alias cdssh='cd ~/.ssh' | 357 | alias cdssh='cd ~/.ssh' |
359 | alias stew='cd ~/git/mapstew' | 358 | alias stew='cd ~/git/mapstew' |
360 | alias mac='ssh geothings@192.168.8.33' | ||
361 | alias chmodx='sudo chmod +x' | 359 | alias chmodx='sudo chmod +x' |
362 | 360 | ||
363 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 361 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
diff --git a/misc/cron b/misc/cron deleted file mode 100644 index 64fe9a7..0000000 --- a/misc/cron +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | # update Taiwan OSM replication | ||
2 | 0 7 * * * cd data && $HOME/settings/tools/osm/osm.pbf.update taiwan-latest.osm.pbf >> log | ||
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index b46169d..9d9f56e 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
@@ -4,6 +4,8 @@ elif [[ $0 == 'bash' ]]; then | |||
4 | shopt -s extglob | 4 | shopt -s extglob |
5 | fi | 5 | fi |
6 | 6 | ||
7 | cd ~/Downloads | ||
8 | |||
7 | # set default editor | 9 | # set default editor |
8 | export EDITOR=vim | 10 | export EDITOR=vim |
9 | 11 | ||