xmodmap -e "keycode 49 = less greater less greater backslash backslash backslash"
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
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
buildInputs = with pkgs.buildPackages; [ | |
git | |
nodejs_22 | |
pnpm | |
bash | |
]; | |
# The shellHook below includes a workaround for | |
# https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/ |
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
# | |
# Launchkey Mini II Sweep Animation | |
# by David Madison © 2018 | |
# www.partsnotincluded.com | |
# | |
# | |
# Modified to work for the Launchkey 25 MK2. | |
# Instead of the original sweep, it now displays |
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
{ pkgs, config, ... }: | |
with pkgs; stdenv.mkDerivation rec { | |
pname = "caddy"; | |
version = "2.6.2"; | |
dontUnpack = true; | |
nativeBuildInputs = [ git go xcaddy ]; | |
configurePhase = '' |
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
{ lib | |
, stdenv | |
, fetchFromGitHub | |
, nixosTests | |
, caddy | |
, testers | |
, installShellFiles | |
, autoPatchelfHook | |
}: | |
let |
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
{ 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 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
{ lib | |
, buildGoModule | |
, fetchFromGitHub | |
, nixosTests | |
, caddy | |
, testers | |
, installShellFiles | |
}: | |
let | |
version = "2.7.6"; |
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
# 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 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 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 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
#!/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" |
NewerOlder