delete arp cache on macOS
sudo arp -a -dsearch for raspberry pi
arp -a | grep b8:27:ebdelete arp cache on macOS
sudo arp -a -dsearch for raspberry pi
arp -a | grep b8:27:eb| #!/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 |
inspired by Teaching with open source presentation service Reveal.js
git clone [email protected]:yourusername/newrepository.git
cd newrepository/
| #!/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' |
| #!/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 |
Ctrl-s %Ctrl-s \Ctrl-s tab | Ctrl-s o | Ctrl-s [left | right | up | down]Ctrl-s Ctrl-o???some from https://gist.github.com/shuvalov-anton/897301cb850814a97e3f#file-byobu-cheatsheet-md
F2 Create a new windowF3 Move to the previous windowF4 Move to the next windowYou 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/
| --- /etc/kbd/config 2015-02-21 16:24:59.653062112 +0100 | |
| +++ /etc/kbd/config.new 2015-02-21 16:24:28.554492138 +0100 | |
| @@ -38,7 +38,8 @@ | |
| # screen blanking timeout. monitor remains on, but the screen is cleared to | |
| # range: 0-60 min (0==never) kernels I've looked at default to 10 minutes. | |
| # (see linux/drivers/char/console.c) | |
| -BLANK_TIME=30 | |
| +#BLANK_TIME=30 | |
| +BLANK_TIME=0 | |
| !#/bin/bash | |
| su - munin --shell=/bin/bash | |
| /usr/share/munin/munin-update | |
| exit |
| ## Installation of https://github.com/perception101/pisense | |
| sudo su - | |
| mkdir /opt/munin-plugins | |
| wget https://raw.githubusercontent.com/perception101/pisense/master/pisense_ -O /opt/munin-plugins/pisense_ | |
| chmod 0755 /opt/munin-plugins/pisense_ | |
| ln -s /usr/share/munin/plugins/pisense_ /etc/munin/plugins/pisense_clock |