Skip to content

Commit

Permalink
Add infra for presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
allgreed committed Oct 2, 2021
1 parent dd6997d commit 64ce949
Show file tree
Hide file tree
Showing 8 changed files with 1,559 additions and 6 deletions.
2 changes: 2 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
gen
43 changes: 43 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.DEFAULT_GOAL := help

NPM_PATH := node_modules/.bin

REVEAL_BIN := $(NPM_PATH)/reveal-md
REVEAL_OPTS :=
REVEAL_TARGET := main.md
REVEAL_SOURCES := $(REVEAL_TARGET) style.css

REVEAL := $(REVEAL_BIN) $(REVEAL_TARGET) $(REVEAL_OPTS)

# Porcelain
# ###############
.PHONY: ci build lint setup

serve: setup ## show presentation in local browser
$(REVEAL) -w

ci: setup lint build ## run all tests and build all artifacts
@echo "Not implemented"; false

build: setup ## create artifact
$(REVEAL) --static dist

lint: ## run static analysis
@echo "Not implemented"; false


# Plumbing
# ###############
.PHONY: setup

setup: node_modules


node_modules:
yarn install --frozen-lockfile --ignore-engines

# Utilities
# ###############
.PHONY: help
help: ## print this message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
16 changes: 10 additions & 6 deletions how-i-learned-to-stop-worrying-and-love-nix/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ title: How I Learned to Stop Worrying and Love Nix
# How I Learned to Stop Worrying and Love Nix
### by Olgierd'd "allgreed" Kasprowicz

TODO: intro slide opinions
<!--v-->

TODO: intro slide opinions / questions

<!--s-->

<!--v-->
Expand Down Expand Up @@ -185,7 +188,7 @@ make container
## Word of warrning
![](./img/mermaid.jpg)


<!--v-->
### Hashes and derivations
<!--TODO kiedyś fancy obrazek-->

Expand Down Expand Up @@ -290,7 +293,7 @@ https://github.com/allgreed/thinkpad-ec/blob/master/default.nix
notify:
- reload XRDB
become: yes
---

# handlers.yml

- name: reload XRDB
Expand All @@ -305,10 +308,9 @@ https://github.com/allgreed/thinkpad-ec/blob/master/default.nix
- actually works
- actually congruent
- actually fast
- like Ansible
<!--v-->
### Demo
### ~demo
<!--v-->
```
Expand All @@ -323,10 +325,12 @@ NAME USED AVAIL REFER MOUNTPOINT
└── reserved 1G 103G 24K none
```

<!--v-->
### Problems (unresolved)
- Tensorflow (Pytorch werks)
- Nvidia Profiler GUI
- getting Brother printer to work
<!--v-->

### Ideas
- Knowledge sharing
Expand All @@ -340,7 +344,7 @@ NAME USED AVAIL REFER MOUNTPOINT
- basically Terraform + Ansible

<!--v-->
### Demo
### ~demo

<!--s-->

Expand Down
5 changes: 5 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"reveal-md": "^5.1.3"
}
}
7 changes: 7 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/reveal-md.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"theme": "moon",
"highlight-theme": "github",
"css": "style.css",
"separator": "<!--s-->",
"verticalSeparator": "<!--v-->"
}
3 changes: 3 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/reveal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"transition": "slide"
}
9 changes: 9 additions & 0 deletions how-i-learned-to-stop-worrying-and-love-nix/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.reveal code
{
font-family: 'Source Code Pro';
}

blockquote
{
width: 90% !important;
}
Loading

0 comments on commit 64ce949

Please sign in to comment.