aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias1
-rw-r--r--mutt/default2
-rw-r--r--profile1
-rw-r--r--snippets/html_template_map_leaderline15
-rw-r--r--web/bookmarklet/contextmenu1
5 files changed, 13 insertions, 7 deletions
diff --git a/alias b/alias
index 2c0dd4e..b855353 100644
--- a/alias
+++ b/alias
@@ -55,6 +55,7 @@ alias j='sudo -i journalctl -xeu'
55alias jf='sudo -i journalctl -xfeu' 55alias jf='sudo -i journalctl -xfeu'
56alias fb{.,''}conf='sudo vim /etc/fail2ban/jail.d/jail.local' 56alias fb{.,''}conf='sudo vim /etc/fail2ban/jail.d/jail.local'
57alias fb='sudo -i fail2ban-client' 57alias fb='sudo -i fail2ban-client'
58alias 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>='
54macro index q '<change-folder>?' 54macro index q '<change-folder>?'
55bind attach g exit 55bind attach g exit
56bind index o sort-reverse 56bind index o sort-reverse
57bind index R group-chat-reply
57bind index O sort-mailbox 58bind index O sort-mailbox
58bind index,pager <Return> sync-mailbox 59bind index,pager <Return> sync-mailbox
59bind index x tag-entry 60bind index x tag-entry
@@ -197,6 +198,7 @@ color index blue green "~N~v~(~F)" #
197color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) 198color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
198color index magenta black "~h Stay" # marked as Stay 199color index magenta black "~h Stay" # marked as Stay
199color index lightblack black "~h Done" # marked as Done 200color index lightblack black "~h Done" # marked as Done
201color index lightblack black "~y done" # marked as Done
200 202
201# color header 203# color header
202color header green black "^(From)" 204color header green black "^(From)"
diff --git a/profile b/profile
index 953a8e1..3af0b9c 100644
--- a/profile
+++ b/profile
@@ -1,6 +1,7 @@
1# trap 'exit.sh' EXIT 1# trap 'exit.sh' EXIT
2 2
3export PATH=~/.local/bin:$PATH 3export PATH=~/.local/bin:$PATH
4export PATH=~/go/bin:$PATH
4export SETTING_DIR=${SETTING_DIR:=$HOME/helper} 5export SETTING_DIR=${SETTING_DIR:=$HOME/helper}
5export TERM=xterm-256color 6export TERM=xterm-256color
6export XDG_CONFIG_HOME=~/.config 7export 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);