blob: abbb4f0a972e33240bddbf722223d7c10109077d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
serve:
hugo server -D
deploy:
rsync -avz --delete ./public/ eltrac@${GEEDEAPRO_IP}:/var/www/html/geedeapro
build:
bb ./build.clj
pub: build deploy
write section name:
hugo new content {{section}}/{{name}}.md
nvim ./content/{{section}}/{{name}}.md
article name: (write "article" name)
weekly name: (write "weekly" name)
fiction name: (write "fiction" name)
library name:
#!/usr/bin/env bb
(require '[babashka.tasks :refer [shell]])
(import 'java.time.format.DateTimeFormatter
'java.time.LocalDateTime)
(def date (LocalDateTime/now))
(def formatter (DateTimeFormatter/ofPattern "yyyy"))
(def year (.format date formatter))
(shell "just" "write" (str "library/" year) "{{name}}")
make:
open https://invidious.nerdvpn.de/watch?v=YjXfjdCmfD4
ring:
@printf '\a'
me:
@echo "Hey, kids. Spelling is fun!"
|