Skip to content

Instantly share code, notes, and snippets.

View kriipke's full-sized avatar

||||||||||||||||||||||||||||||||||||||||||| kriipke

View GitHub Profile
@kriipke
kriipke / install_nnn-v5.1.sh
Created July 31, 2025 03:18
nnn configuration/installation
#!/usr/bin/env sh
set -e
# Default configuration
FLAVOR="nerd" # Options: nerd, emoji, icons
VERSION="5.1"
PREFIX="/usr/local"
ARCH="x86_64"
EXT="tar.gz"
notion-domain-verification=cPRTxzHxVqWVOg5fyj8Do66YXd6EAhVu31Qm4ay08id
https://www.figma.com/design/BdtKBceKfeNvVhj6kupY5G/Chartpress?node-id=0-1&t=Ldp2vM0GmQCxichl-1
@kriipke
kriipke / bootstrap.sh
Last active February 19, 2024 13:00
Ubuntu-bootstrapper
#!/bin/bash -eux
ENV_DIR=/etc/profile.d
ENV_RC=/etc/profile.d/sh.local
ZSH_CUSTOM_DIR=/etc/zsh/custom
ZSH_SHARED_DIR=/usr/share/zsh
VIM_RUNTIME=/usr/share/vim/vimfiles
ID_LIKE=$(. /etc/os-release; echo ${ID_LIKE:-$ID})
if echo $ID_LIKE | grep -qE '(fedora|rhel|centos)' ; then
@kriipke
kriipke / Dockerfile
Last active January 21, 2024 23:57
Docker container with a portable toolkit of Kubernetes related cli commands
FROM ubuntu:jammy as base
ENV KUBE_VERSION=v1.27.4
ENV KUBECTL_VERSION=${KUBE_VERSION}
ENV KREW_VERSION=v0.4.4
ENV HELM_VERSION=v3.14.0
ARG DEBIAN_FRONTEND=noninteractive
FROM base as base-install-depends
RUN apt update -y && apt install -y curl git tar
@kriipke
kriipke / socket-watchdog.py
Created November 29, 2023 14:07
socket-watchdog.py
import datetime
from rich.console import Console
from rich.pretty import pprint
import pandas as pd
console = Console()
debug = False
@kriipke
kriipke / gist:97dc27da18c52edd85caaedf06460619
Created September 25, 2023 04:31
Powershell $PROFILE: PSReadline config to mimic unix readline behavior
Set-PSReadlineKeyHandler -Chord Ctrl+a -Function BeginningOfLine
Set-PSReadlineKeyHandler -Chord Ctrl+e -Function EndOfLine
Set-PSReadlineKeyHandler -Chord Ctrl+w -Function BackwardDeleteWord
Set-PSReadlineKeyHandler -Chord Ctrl+u -Function BackwardKillLine
Set-PSReadlineKeyHandler -Chord Ctrl+y -Function Yank
Set-PSReadlineKeyHandler -Chord Alt+f -Function ForwardWord
Set-PSReadlineKeyHandler -Chord Alt+b -Function BackwardWord
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadlineKeyHandler -Chord UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Chord DownArrow -Function HistorySearchForward
#!/bin/bash
set -ex
# THIS SCRIPT PROVISIONS A NEW ANSIBLE ROLE INSIDE A
# VIRTUAL ENVIRONMENT VIA PIPENV FOR USE WITH MOLECULE + VAGRANT
ROLE_NAME=${1:?}
ROLE_NAMEPACE=${2:?}
ROLE_PATH=/opt/src/ansible-${ROLE_NAME}-role/
@kriipke
kriipke / dietpi.txt
Last active March 7, 2025 03:07
post install script to install Kubernetes (k3s) on dietpi on Turing Pi 2, set the path to this file in the AUTO_SETUP_CUSTOM_SCRIPT_EXEC variable in dietpi.txt, see https://help.turingpi.com/hc/en-us/articles/8942873470877-The-plan
AUTO_SETUP_ACCEPT_LICENSE=1
AUTO_SETUP_LOCALE=C.UTF-8
AUTO_SETUP_KEYBOARD_LAYOUT=us
AUTO_SETUP_TIMEZONE=America/New_York
AUTO_SETUP_NET_ETHERNET_ENABLED=1
AUTO_SETUP_NET_WIFI_ENABLED=0
AUTO_SETUP_NET_ETH_FORCE_SPEED=0
AUTO_SETUP_NET_WIFI_COUNTRY_CODE=SK
AUTO_SETUP_NET_USESTATIC=1
@kriipke
kriipke / fanspeed.service
Last active May 27, 2023 03:43
some raw commands to send via ipmitool to slow the fan speed on 11th gen poweredge servers (R410 notably) down to around 1/4 of their original speed to shut them up :)
[Unit]
Description=Sets fan speeds on boot
[Service]
Type=oneshot
ExecStartPre=ipmitool raw 0x30 0x30 0x01 0x00
ExecStart=ipmitool raw 0x30 0x30 0x02 0xff 0x14
[Install]
WantedBy=multi-user.target