で設定可能なレシピのドキュメントです。
recipe:
で設定可能なレシピのドキュメントです。
recipe:
#!/usr/bin/env bash | |
sudo mkdir /sys/fs/cgroup/systemd | |
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd | |
sudo service docker start |
server { | |
listen 80; | |
location / { | |
proxy_cache images; | |
proxy_cache_valid 200 ${PROXY_CACHE_VALID_200}; | |
proxy_cache_key “${DOLLAR}scheme://${DOLLAR}host${DOLLAR}request_uri${DOLLAR}is_args${DOLLAR}args”; | |
proxy_pass http://small_light_server; | |
} | |
# TODO ngx_small_lightがwebpファイルを処理出来ないのでそのままプロキシする。 |
{ | |
"itemScores": [ | |
{ | |
"item": "131", | |
"score": 0.9885161730935005, | |
"title": "どこもカオスすぎる!タイの地獄寺まとめ" | |
}, | |
{ | |
"item": "133", | |
"score": 0.9571745298078881, |
レシピ
recipe:
- url: 'https://fukata.org'
steps:
- key: title
dom: 'html > head > title'
action: get_text
transform:
// parse thai style format ex) '05 ก.ย. 2536' | |
function parse_thai_date($str) { | |
$thai_months = [ | |
'ม.ค.' => 1, | |
'ก.พ.' => 2, | |
'ม.ค.' => 3, | |
'เม.ย.' => 4, | |
'พ.ค.' => 5, | |
'มิ.ย.' => 6, | |
'ก.ค.' => 7, |
#!/usr/bin/env bash | |
# see https://askubuntu.com/questions/374877/trying-to-launch-application-in-full-screen-mode-on-boot | |
/usr/bin/gnome-terminal & | |
sleep 5 | |
/usr/bin/wmctrl -r 'Terminal' -t 1 | |
/usr/bin/wmctrl -r 'Terminal' -b toggle,fullscreen |
gesture swipe up 4 xdotool key alt+F1 | |
gesture swipe left 4 _internal ws_up | |
gesture swipe right 4 _internal ws_down |
; HHKB style keymap | |
>+[::Send, {Up} | |
>+'::Send, {Right} | |
>+/::Send, {Down} | |
>+;::Send, {Left} | |
; Chrome move prev,next tab | |
<+![::Send, ^{PgUp} | |
<+!]::Send, ^{PgDn} |