summaryrefslogtreecommitdiff
path: root/justfile
blob: d360de9ddb611b56ab4da4a1a326af6f55bffb04 (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
serve:
    hugo server -D

deploy:
    openrsync --rsync-path=openrsync -av ./public/ qwilfish:/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!"