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 | |
| # Written by Adam Shand <[email protected]> 24 Mar 2023 | |
| # Inspired by: https://gist.github.com/mikroskeem/8cd3492ce2aa6699c2fa9db3545a58f1#file-setup_sshfp-sh | |
| # TIPS | |
| # - if ssh host and dns zone are the same, prefix ssh server hostname with a dot (eg. .example.nz) | |
| # - set 'StrictHostKeyChecking accept-new' and 'VerifyHostKeyDNS yes' in ~/.ssh/config | |
| # Use global api key or create a restricted token: https://dash.cloudflare.com/profile/api-tokens |
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
| { config, pkgs, ... }: | |
| { | |
| environment.etc = { | |
| "ssh/ca.pub".text = '' | |
| ssh-rsa ... | |
| ''; | |
| }; | |
| services.openssh.extraConfig = |
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 | |
| if ! command -v node &> /dev/null | |
| then | |
| echo "nodejs could not be found" | |
| sudo apt install -y nodejs | |
| fi | |
| if ! command -v npm &> /dev/null | |
| then |
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 bash | |
| # Provided a list of package and option names (provided by my `writeOpts.sh` and | |
| # `writePacks.sh` scripts), fuzzy search package and options information. | |
| # The selection's definition will be opened in vim (as readonly) for viewing. | |
| # NOTE: This script opens the result in a new URxvt window, you most likely will want | |
| # to change that to open in the current window, or your own Terminal Emulator of | |
| # choice. The current implementation is intended for use with a temporary XMonad | |
| # scratchpad, which dies immediately after exiting (thus a new URxvt window is | |
| # required). |
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
| #include "dz60.h" | |
| #define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)) | |
| enum custom_keycodes { | |
| KX_UMLAUT_A = SAFE_RANGE, | |
| KX_UMLAUT_O, | |
| KX_UMLAUT_U, | |
| KX_UMLAUT_S, |