xmodmap -e "keycode 49 = less greater less greater backslash backslash backslash"
This file contains 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
{ pkgs, config, ... }: | |
with pkgs; stdenv.mkDerivation rec { | |
pname = "caddy"; | |
version = "2.6.2"; | |
dontUnpack = true; | |
nativeBuildInputs = [ git go xcaddy ]; | |
configurePhase = '' |
This file contains 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
{ lib | |
, stdenv | |
, fetchFromGitHub | |
, nixosTests | |
, caddy | |
, testers | |
, installShellFiles | |
, autoPatchelfHook | |
}: | |
let |
This file contains 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
{ lib, stdenv, fetchurl, autoPatchelfHook }: | |
stdenv.mkDerivation rec { | |
pname = "caddy-plugin"; | |
version = "0.1.0"; | |
src = fetchurl { | |
url = "https://caddyserver.com/api/download?os=linux&arch=arm64&p=github.com%2Fcaddy-dns%2Fporkbun"; | |
}; | |
nativeBuildInputs = [ |
This file contains 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
{ lib | |
, buildGoModule | |
, fetchFromGitHub | |
, nixosTests | |
, caddy | |
, testers | |
, installShellFiles | |
}: | |
let | |
version = "2.7.6"; |
This file contains 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
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml | |
name: Build static & deploy to GitHub Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: |
This file contains 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 glob import glob | |
from pathlib import Path | |
from sys import argv | |
from os import system | |
from re import search, RegexFlag | |
from datetime import datetime | |
#exiftool -r "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<FileCreateDate" "%1%" | |
DATE_FORMAT_STRING = "%Y%m%d_%H%M%S__" # == yyyyMMdd_HHmmss__ | |
NAME_FORMATTED = r"[^a-z]{1,}_{2}" |
This file contains 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
#!/bin/bash | |
read -p 'User: ' user | |
repo='Placeholder' | |
while [ "$repo" ] | |
do | |
read -p 'Repo: ' repo | |
wget "https://gh-card.dev/repos/$user/$repo.svg" | |
inkscape "$repo.svg" --export-type=png -h 540 -o "$repo.png" |
Moved my notes to https://github.com/Denperidge/Learning.md !
The method with which I securely and easily keep track of my local config files.
The basic workflow consists of creating a private (GitHub) Repo with the following structure
{SERVERNAME}.{CONFIGFILENAME}
: for example, raspberrypi.docker-compose.yml. These can be as many as you want.{SERVERNAME}.config.sh
: a script that clones or pulls the repo, and creates symbolic links for the necessary files. The code for this will be shown below.
From there, you can simply run the X.config.sh files using a cronjob, systemd, or just manually.
NewerOlder