Skip to content

Instantly share code, notes, and snippets.

View kwmiebach's full-sized avatar

kwmiebach kwmiebach

View GitHub Profile
@kwmiebach
kwmiebach / v17.css
Created December 18, 2024 12:42
Styles V17
/* chrome n3 */
a.fw-bold.text-truncate {
font-size: 30px
}
span.min-w-0.text-truncate {
font-size: 30px
}
@kwmiebach
kwmiebach / addkeys.sh
Last active December 17, 2024 19:02
Add public keys for a user to ~/.ssh/authorized_keys
#!/bin/bash
# GitHub SSH Key Updater
# ---------------------
# SECURITY WARNING: This script grants SSH access to your machine!
# Only add keys from GitHub users you absolutely trust with full SSH access to your system.
# Each added public key will allow that user to log into your machine via SSH.
#
# Purpose:
# Fetches and merges public SSH keys from a GitHub user into your ~/.ssh/authorized_keys file,
@kwmiebach
kwmiebach / make-system-folder.cmd
Created October 15, 2023 12:24
Create a `Windows Master Control Panel' / 'All Tasks Folder on the Desktop'
@echo off
cd %USERPROFILE%\Desktop
mkdir "system.{ED7BA470-8E54-465E-825C-99712043E01C}"
@kwmiebach
kwmiebach / smnetscanner.sh
Last active September 28, 2023 08:22
smnetscanner.sh
#!/bin/bash
# (c) CompuMatter, LLC, ServerMatter
# no warranty expressed or implied - use as is.
# See https://www.youtube.com/watch?v=4hjskxkapYo
# versioned here: https://gist.github.com/kwmiebach/6565ad1b43f3c781b23fce6ba80f59ea
# history of the gist:
# 2023-09-28 downloaded from https://cloud.compumatter.biz/s/fxfYM9SkamBtGqG - unchanged
# purpose of this script:
@kwmiebach
kwmiebach / get_toml_value.sh
Last active September 20, 2023 11:52
Read values from a simple toml file from bash
#######################################################################################
# Bash function get_toml_value() to get the value of a key in a section of a TOML file.
# Versioned here: https://gist.github.com/kwmiebach/e42dc4a43d5a2a0f2c3fdc41620747ab
# Call it like this:
# value=$(get_toml_value "./conf/config.toml" "server_b" "domain")
# Result should be "my123.example.com" in the case of this example file:
# ---------------------------
# [server_a]
# proto = "https"
# domain = "test.example.net"
@kwmiebach
kwmiebach / petl_sequence.py
Last active August 2, 2023 15:56
add a 1-based seqence column to a petl table
'''
Versioned here:
https://gist.github.com/kwmiebach/362a41b0fbf0cad6db36a1e037bcfbe6
'''
def add_seq(tab,name='seq',position=0):
# NO, PETL IS CURRENTLY BROKEN - depending on python version
# tab = ETL.addrownumbers(tab, 'seq')
import petl as ETL
@kwmiebach
kwmiebach / tutor.txt
Created April 16, 2022 11:16
helix-editor tutor
_ _ __ __
| | | | _ \ \ / /
| |_| | ___ | | (_) \ \/ /
| _ | / _ \ | | _ ) (
| | | | | __/ | | | | / /\ \
|_| |_| \___| |_| |_| /_/ \_\
A post-modern modal text editor.
_________________________________________________________________
@kwmiebach
kwmiebach / SpaceVim.md
Created March 9, 2022 18:31 — forked from bespokoid/SpaceVim.md
SpaceVim cheatsheet #tools
@kwmiebach
kwmiebach / .tmux.conf
Created March 6, 2022 10:19 — forked from mortn/.tmux.conf
tmux F key bindings on FreeBSD - since there's no Byobu :-/
# First remove *all* keybindings
unbind-key -a
source ~/.tmux.conf-f-keys
source ~/.tmux.conf-colors
@kwmiebach
kwmiebach / notes.py
Last active November 29, 2021 22:50 — forked from IdanBanani/notes.py
Fork of IdanBanani/notes.py
# -*- coding: utf-8 -*-
# To list this file sections: $ grep '^"" ' notes.py
"""""""""""""
"" Why Python ?
"""""""""""""
- extremely readable (cf. zen of Python + [this 2013 study](http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/))
- simple & fast to write
- very popular (taught in many universities)
- has an extremely active development community