diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2025-04-28 08:38:59 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2025-04-28 08:42:47 +0800 |
commit | 7702cd1a6f708cea72c7fd16a520d7c036ff3ec7 (patch) | |
tree | 3970c7c291457e9ac2d44ff7541a2797e8174c54 | |
parent | 4cad49b1bf0a3998a76d948f9c53b857510676e0 (diff) |
Update
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | mutt/default | 2 | ||||
-rw-r--r-- | profile | 1 | ||||
-rw-r--r-- | snippets/html_template_map_leaderline | 15 | ||||
-rw-r--r-- | web/bookmarklet/contextmenu | 1 |
5 files changed, 13 insertions, 7 deletions
@@ -55,6 +55,7 @@ alias j='sudo -i journalctl -xeu' | |||
55 | alias jf='sudo -i journalctl -xfeu' | 55 | alias jf='sudo -i journalctl -xfeu' |
56 | alias fb{.,''}conf='sudo vim /etc/fail2ban/jail.d/jail.local' | 56 | alias fb{.,''}conf='sudo vim /etc/fail2ban/jail.d/jail.local' |
57 | alias fb='sudo -i fail2ban-client' | 57 | alias fb='sudo -i fail2ban-client' |
58 | alias vps.test='curl -sL https://yabs.sh | bash' | ||
58 | 59 | ||
59 | # }}} | 60 | # }}} |
60 | # Nginx{{{ | 61 | # Nginx{{{ |
diff --git a/mutt/default b/mutt/default index b40cecf..f33582d 100644 --- a/mutt/default +++ b/mutt/default | |||
@@ -54,6 +54,7 @@ macro index,pager c '<change-folder>=' | |||
54 | macro index q '<change-folder>?' | 54 | macro index q '<change-folder>?' |
55 | bind attach g exit | 55 | bind attach g exit |
56 | bind index o sort-reverse | 56 | bind index o sort-reverse |
57 | bind index R group-chat-reply | ||
57 | bind index O sort-mailbox | 58 | bind index O sort-mailbox |
58 | bind index,pager <Return> sync-mailbox | 59 | bind index,pager <Return> sync-mailbox |
59 | bind index x tag-entry | 60 | bind index x tag-entry |
@@ -197,6 +198,7 @@ color index blue green "~N~v~(~F)" # | |||
197 | color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) | 198 | color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) |
198 | color index magenta black "~h Stay" # marked as Stay | 199 | color index magenta black "~h Stay" # marked as Stay |
199 | color index lightblack black "~h Done" # marked as Done | 200 | color index lightblack black "~h Done" # marked as Done |
201 | color index lightblack black "~y done" # marked as Done | ||
200 | 202 | ||
201 | # color header | 203 | # color header |
202 | color header green black "^(From)" | 204 | color header green black "^(From)" |
@@ -1,6 +1,7 @@ | |||
1 | # trap 'exit.sh' EXIT | 1 | # trap 'exit.sh' EXIT |
2 | 2 | ||
3 | export PATH=~/.local/bin:$PATH | 3 | export PATH=~/.local/bin:$PATH |
4 | export PATH=~/go/bin:$PATH | ||
4 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} | 5 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} |
5 | export TERM=xterm-256color | 6 | export TERM=xterm-256color |
6 | export XDG_CONFIG_HOME=~/.config | 7 | export XDG_CONFIG_HOME=~/.config |
diff --git a/snippets/html_template_map_leaderline b/snippets/html_template_map_leaderline index afcec6d..02affef 100644 --- a/snippets/html_template_map_leaderline +++ b/snippets/html_template_map_leaderline | |||
@@ -5,12 +5,12 @@ | |||
5 | <meta charset='utf-8'> | 5 | <meta charset='utf-8'> |
6 | <title>Leader Line with Markdown</title> | 6 | <title>Leader Line with Markdown</title> |
7 | 7 | ||
8 | <meta property="og:description" content="Add a default marker to the map." /> | 8 | <meta property="og:description" content="門牌分布地圖" /> |
9 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
10 | 10 | ||
11 | <link rel='stylesheet' href='https://unpkg.com/maplibre-gl@4.5.2/dist/maplibre-gl.css' /> | 11 | <link rel='stylesheet' href='https://unpkg.com/maplibre-gl@5.4.0/dist/maplibre-gl.css' /> |
12 | 12 | ||
13 | <script src='https://unpkg.com/maplibre-gl@4.5.2/dist/maplibre-gl.js'></script> | 13 | <script src='https://unpkg.com/maplibre-gl@5.4.0/dist/maplibre-gl.js'></script> |
14 | <script src='https://cdnjs.cloudflare.com/ajax/libs/leader-line/1.0.7/leader-line.min.js'></script> | 14 | <script src='https://cdnjs.cloudflare.com/ajax/libs/leader-line/1.0.7/leader-line.min.js'></script> |
15 | <script src='https://cdnjs.cloudflare.com/ajax/libs/marked/14.0.0/marked.min.js'></script> | 15 | <script src='https://cdnjs.cloudflare.com/ajax/libs/marked/14.0.0/marked.min.js'></script> |
16 | <style> | 16 | <style> |
@@ -26,12 +26,13 @@ | |||
26 | #markdown { | 26 | #markdown { |
27 | height: 100%; | 27 | height: 100%; |
28 | } | 28 | } |
29 | 29 | #map { | |
30 | #map, | 30 | flex: 70%; |
31 | } | ||
31 | #markdown { | 32 | #markdown { |
32 | flex: 50%; | 33 | flex: 30%; |
34 | padding: 0.5em 1em; | ||
33 | } | 35 | } |
34 | |||
35 | pre { | 36 | pre { |
36 | display: none; | 37 | display: none; |
37 | } | 38 | } |
diff --git a/web/bookmarklet/contextmenu b/web/bookmarklet/contextmenu new file mode 100644 index 0000000..8bdf4c6 --- /dev/null +++ b/web/bookmarklet/contextmenu | |||
@@ -0,0 +1 @@ | |||
javascript:(function(w){ var arr = ['contextmenu','copy','cut','paste','mousedown','mouseup','beforeunload','beforeprint']; for(var i = 0, x; x = arr[i]; i++){ if(w['on' + x])w['on' + x] = null; w.addEventListener(x, function(e){e.stopPropagation()}, true); }; for(var j = 0, f; f = w.frames[j]; j++){try{arguments.callee(f)}catch(e){}}})(window); | |||