Skip to content

Instantly share code, notes, and snippets.

View basbebe's full-sized avatar

basbebe

  • Germany
View GitHub Profile
@mdeweerd
mdeweerd / !README.md
Last active October 18, 2025 11:42
Monitor OPNsense internet connection

Monitor OPNsense internet connection

OPNsense sometimes "loses" the WAN facing connection when that is "reinitialised" (modem reboot/WAN restart).

Monitoring the WAN facing connection and taking corrective action is the solution proposed by this script.

opnsense_ping_check.sh will ping IP addresses to determine if the WAN connection is still working, and try to restore the WAN if needed by

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active November 30, 2025 16:23
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@Takika
Takika / fixphpextorder.sh
Last active May 3, 2016 10:01
FreeBSD script to reorder php extensions to avoid sig11
#!/bin/sh
EGREP=/usr/bin/egrep
ECHO=/bin/echo
EXTENSIONS_INI=/usr/local/etc/php/extensions.ini
CP=/bin/cp
MV=/bin/mv
HAS_SPL=`$EGREP -c '^extension=spl.so$' $EXTENSIONS_INI`
HAS_SQLITE=`$EGREP -c '^extension=sqlite.so$' $EXTENSIONS_INI`
@antifuchs
antifuchs / iterm2_zsh_init.zsh
Last active July 19, 2024 07:47
tmux-enabled iterm2 shell integration for zsh.
if [[ -o login ]]; then
TMUX_PREFIX=""
if [[ ! -z "$TMUX" ]] ; then
# Via
# <http://blog.yjl.im/2014/12/passing-escape-codes-for-changing-font.html>:
TMUX_PREFIX='\ePtmux;\e'
TMUX_POSTFIX='\e\\'
fi
# Indicates start of command output. Runs just before command executes.
@XVilka
XVilka / TrueColour.md
Last active November 27, 2025 14:11
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!