postsread more
ansible role, vars / default files
overview
given a certain role, there are 2 folders to store variables, namely
[role root]/default[role root]/vars
by default there is an empty main.yml there.
storing all vars inside either of them will get messy easily, so it gets natural to group vars by different files.
but, trying to import / include them inside main.yml won’t work.
the trick to load them all
create these folders :
[role root]/default/main/
[role root]/default/vars/
and put relevant files / folder(s) of files inside accordingly.
postsread more
git / github / gitlab rollback, revert
have to enable push -f in gitlab first.
git reset --hard [hash]
git push -f origin master
postsread more
add git repo local clones to other hosts
1. add url to repo ( according to .git/config ) and local destination file path
- target file :
set-facts-repo.yaml - file path :
[ansible-repo-root]/etc/playbooks/roles/maintenance/tasks/git/tasks
2. add the above facts to the git pull loop
- target file :
git-pull.yaml - file path :
[ansible-repo-root]/etc/playbooks/roles/maintenance/tasks/git
postsread more
deno template repo
usage
via curl :
curl -sS https://jimz.cc/s/deno.sh | bash
via deno :
deno run -Ar https://jimz.cc/s/deno.ts
clone via ssh
git@github.com:dallmo/deno-app-template.git
link to github repo
postsread more
running a remote deno script / module
deno run -Ar https://deno.land/x/lume/init.ts
ref :
deno run main.ts
deno run https://mydomain.com/main.ts
cat main.ts | deno run -
posts
read more
慈山寺參學,路線,時間安排
2024-02-14,約咗參學,進寺時間1000
2個選擇﹕
1. 泊車响慈山寺山腳
- 0945﹕去到寺院門口;
- 0915﹕去到山腳,用半個鐘時間揾位,同埋行上山;
- 0815﹕由九龍城出發,用大約1個鐘時間去到慈山寺山腳;
cons﹕唔知錶位响邊,要揾,可能係街坊位;
pros﹕走嗰時輕鬆啲;
2. 泊車响大埔墟站
- 0945﹕落車行約5分鐘去到寺院門口;
- 0915﹕大埔墟站搭20T,車程約30分鐘,班次固定;
- 0845﹕楂車去到大埔墟站,用半個鐘時間揾位,行埋落去20T車站;
- 0800﹕由九龍城出發,用大約45分鐘時間去到大埔墟站;
cons﹕要早啲起身,要揾車撘,轉車;
pros﹕架車安全啲,唔會得罪牛屎飛;
其他响大埔墟站嘅交通工具
| 交通工具 | 編號 | 班次 (分鐘) | 落車要行幾耐 (分鐘) | 收費 (HKD) | 備註 |
|---|---|---|---|---|---|
| 小巴 | 20B | 10-20 | 10 | 7.8 | / |
| 小巴 | NR532 | 20-30 | 15 | 7.8 | / |
| 小巴 | 20C | 05-20 | 20 | 8.3 | / |
| 小巴 | 20T | 固定 | 5 | 7.8 | 落車最近,但係公眾假期無車 |
| 巴士 | 75K | 10-20 | 20 | 6.4 | / |
| 巴士 | 275R | 10-20 | 20 | 12 | / |
| 的士 | / | / | 5 | ~80 | / |

