Things relevant to my interest, and maybe yours.

syn-ack shirt

T-Shirt inspired by the web

.. esp. ThinkGeek

The font (if I might call it so) was truthfully copied from my trusty HP32s.

The svgs are outlined so a cutter should be able to parse it.

Front:

Back:

Kalender 2014
Kalender 2014

Kalender 2014


ALT

ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT

tidy-acl

Tidy ACLs listings on ASA

Normaly a show access-list would bring up something like

access-list OUTSIDE-IN line 1 extended permit ip object-group FOO any (hitcnt=9001)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.1 any (hitcnt=9000)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.2 any (hitcnt=1)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.3 any (hitcnt=0)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.4 any (hitcnt=0)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.5 any (hitcnt=0)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.6 any (hitcnt=0)
  access-list OUTSIDE-IN line 1 extended permit ip host 10.42.23.7 any (hitcnt=0)
access-list OUTSIDE-IN line 2 extended permit ip object-group BAR any (hitcnt=9002)
  ...

Sometimes you just like to see the leading configuration lines. To get there you can simply exclude a double whitespace like:

show access-list | exclude \ \ 
access-list OUTSIDE-IN line 1 extended permit ip object-group FOO any (hitcnt=9001)
access-list OUTSIDE-IN line 2 extended permit ip object-group BAR any (hitcnt=9002)
bash

bash-completion for arbitrary commands

To use the completion for ssh for any command ssh * /etc/bash_completion:

. /usr/share/bash-completion/bash_completion
# set up dynamic completion loading
_completion_loader()
{
  local compdir=./completions
  [[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions"
  # Try basename.
  . "$compdir/${1##*/}" &>/dev/null && return 124
  # Arbitrary ssh command
  [[ $1 =~ .*ssh ]] && . /usr/share/bash-completion/completions/ssh >/dev/null 2>&1 && complete -F _ssh $1 && return 124

    # Need to define *something*, otherwise there will be no completion at all.
  complete -F _minimal "$1" && return 124
} &&
complete -D -F _completion_loader

Note: completion loader was mostly extracted from /usr/share/bash-completion/bashcompletion itself, just the "# Arbitrary ssh command" part was added.

  • Nächstes Thema
Kalender 2013
Kalender 2013

Kalender 2013


ALT

ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT ALT

Kalender 2012
Kalender 2012

Kalender 2012


MONAT

MONAT MONAT MONAT MONAT MONAT MONAT MONAT MONAT MONAT MONAT MONAT MONAT


archive


We did not invent the algorithm. The algorithm consistently finds Jesus. The algorithm killed Jeeves. The algorithm is banned in China. The algorithm is from Jersey. The algorithm constantly finds Jesus. This is not the algorithm. This is close.


This wiki is powered by ikiwiki.