This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| from datetime import date, datetime | |
| import requests | |
| import os | |
| import json | |
| # The values in the template are originally hidden as HTML comments | |
| # This function adds onto the python string replace by adding HTML comments to the string to find | |
| # And then replacing it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| package_update: true | |
| runcmd: | |
| - apk update | |
| - apk add qemu-guest-agent | |
| - rc-update add qemu-guest-agent default | |
| - service qemu-guest-agent start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| _ "embed" | |
| "fmt" | |
| tree_sitter "github.com/tree-sitter/go-tree-sitter" | |
| tree_sitter_javascript "github.com/tree-sitter/tree-sitter-javascript/bindings/go" | |
| highlight "go.gopad.dev/go-tree-sitter-highlight" | |
| "log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "basics": { | |
| "name": "Samuel Hierholzer-Ruprecht", | |
| "label": "System Engineer, Programmer by trade", | |
| "image": "/img/me_small.jpg", | |
| "email": "samuel@ton-kunst.ch", | |
| "url": "https://yosemitesam.ch", | |
| "summary": "I'm an open source enthusiast with a big love for declarative approaches. I also love to tinker with my system and play around with minimal power user software (tiling wm, emacs, [n]vim, etc.).", | |
| "location": { | |
| "city": "Winterthur", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env oil | |
| ### TODO: Maybe define a Nix-Snippet standard and allow other snippet sources (from github & co) | |
| setglobal SOURCES = [ './snippets' ] | |
| setglobal DESTINATION = '/etc/nixos/snippets' | |
| setglobal SUDO = 'sudo' | |
| proc askVariables (snippet) { | |
| ### For each ${x} in the snippet, ask if the variable should be replaced by something (and by what) | |
| echo |