Skip to content

Instantly share code, notes, and snippets.

View viegelinsch's full-sized avatar

viegelinsch viegelinsch

  • Germany
View GitHub Profile
@viegelinsch
viegelinsch / fix_munin_dynazoom.md
Last active February 18, 2024 09:34
fix no graphic in munin dynazoom

You have something like "[WARNING] Could not draw graph "/var/lib/munin/cgi-tmp/munin-cgi-graph/" in your /var/log/munin/munin-cgi-graph.log ???

Check the directory permissions!

ls -l /var/lib/munin/cgi-tmp/

shows something like

drwxr-xr-x 3 munin www-data 4,0K Mär 29  2013 munin-cgi-graph/
@viegelinsch
viegelinsch / add-ip-to-etc-issue
Created July 13, 2015 16:43
Add current IP to /etc/issue (aka linux login greeting)
#!/bin/sh
# file: /etc/network/if-up.d/add-ip-to-etc-issue
# source: "stolen" somewhere
if [ "$METHOD" = loopback ]; then
exit 0
fi
# Only run from ifup.
if [ "$MODE" != start ]; then
@viegelinsch
viegelinsch / brew-update-notifier.sh
Last active September 29, 2015 14:48 — forked from SimonSimCity/brew-update-notifier.sh
Extended the script, written by @streeter to exclude the pinned formulae in the list of formulas to update.
#!/bin/bash
#
# Notify of Homebrew updates via Notification Center on Mac OS X
#
# Author: Chris Streeter http://www.chrisstreeter.com
# Requires: terminal-notifier. Install with:
# brew install terminal-notifier
TERM_APP='/Applications/Terminal.app'
BREW_EXEC='/usr/local/bin/brew'
@viegelinsch
viegelinsch / revealjs_as_submodule.md
Created November 29, 2016 14:43
Using reveal.js as presentation framework for learning resources
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
@viegelinsch
viegelinsch / find_RaspberryPi.md
Created May 9, 2024 10:36
How to find a Raspberry Pi on macOS

delete arp cache on macOS

sudo arp -a -d

search for raspberry pi

arp -a | grep b8:27:eb