%rec: example %key: filename %type: note line filename: default.service bin: systemd usage: mv {{filename}} /usr/lib/systemd/system/ + systemctl daemon-reload + systemctl enable --now {{filename}} note: Basic systemd service file content: [Unit] + + Description={{script}} + + [Service] + + ExecStart=/home/{{user}}/.local/bin/{{script}}.sh + + Restart=always + + Type=simple + + User={{user}} + + Group={{group}} + + [Install] + + WantedBy=multi-user.target + + Alias=test.service + filename: food.sc bin: sc-im usage: {{bin}} {{filename}} note: Basic sc-im example of adding and averaging content: # This data file was generated by the Spreadsheet Calculator Improvised (sc-im) + # You almost certainly shouldn't edit it. + + newsheet "Food" + movetosheet "Food" + offscr_sc_cols 0 + offscr_sc_rows 0 + nb_frozen_rows 1 + nb_frozen_cols 0 + nb_frozen_screenrows 2 + nb_frozen_screencols 0 + format A 24 1 0 + format B 13 2 0 + format 0 2 + format 4 2 + format 10 2 + freeze 0 + label A0 = "Food by Weight" + leftstring B0 = "No. Meals" + leftstring A1 = "Ajvar" + let A1 = 5 + let B1 = A1*$A$10 + leftstring A2 = "Apples" + let A2 = 3 + let B2 = A2*$A$10 + leftstring A3 = "Rocket" + let A3 = 0.2 + let B3 = A3*$A$10 + leftstring A4 = "Beli Cheese" + let A4 = 1 + let B4 = A4*$A$10 + leftstring A6 = "Total" + let A6 = @sum(A1:A4) + leftstring B6 = "Total" + let B6 = @sum(B1:B4) + leftstring A7 = "Average" + let A7 = @avg(A1:A4) + leftstring A10 = "Weight of Meal" + let A10 = 0.3 + pad 4 A0:A4 + pad 2 B0:B4 + pad 4 A6:A8 + pad 2 B6 + pad 4 A10 + goto A10 filename: lowdown.mk bin: make usage: {{bin}} -f {{filename}} content: output: all + + .PHONY: example + example: html/foot.html html/head.html + mkdir -p articles/ + fortune > articles/fort_1.md + fortune > articles/fort_2.md + + HTML = $(patsubst articles/%.md,public/%.html,$(wildcard articles/*.md)) + + $(HTML): public/ articles/ $(wildcard html/*) + + html/head.html: + @mkdir $(@D) + echo ' Something about CSS probably ' > $@ + echo '' >> $@ + + html/foot.html: html/head.html + echo '' >> $@ + + public/%.html : articles/%.md + cat html/head.html > $@ + lowdown $< >> $@ + cat html/foot.html >> $@ + + .PHONY: all + all : $(HTML) + + articles/: + mkdir $@ + + public/: + mkdir $@ + + clean : + rm -rf public html