Skip to content

Instantly share code, notes, and snippets.

View BerriJ's full-sized avatar
🌞

Jonathan Berrisch BerriJ

🌞
  • University of Duisburg-Essen
  • Wuppertal, Germany
  • 04:56 (UTC +01:00)
View GitHub Profile
@adamshand
adamshand / sshfp2cf.sh
Last active May 8, 2025 12:35
Automatically Add SSHFP Records to Cloudflare
#!/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
@jamesog
jamesog / configuration.nix
Created March 3, 2023 12:09
NixOS using SSH CA
{ config, pkgs, ... }:
{
environment.etc = {
"ssh/ca.pub".text = ''
ssh-rsa ...
'';
};
services.openssh.extraConfig =
@aarestu
aarestu / web2app
Last active February 3, 2023 02:16
one command to install Nativefier, create desktop app for any web site also make shortcut icon for you [tested on Pop!_OS]
#!/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
@alex-ameen
alex-ameen / nix-search.sh
Created March 13, 2019 01:27
FZF Fuzzy search for NixOS Options and Packages
#! /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).
@itspngu
itspngu / keymap.c
Last active January 21, 2023 21:38
keymap.c file for DZ60 PCB / Including code to facilitate sending nonstandard keys such as those used in some European languages from ANSI boards using "Alt Codes" which would usually be entered through the numpad.
#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,