the odd bit blog
  • Menu ▾
    • /
    • /about
    • /posts
    • /tags
    • /archive
    • /feed
    • →Github
    • →Mastodon
    • →Twitter
  • /
  • /about
  • /posts
  • /tags
  • /archive
  • /feed
    •  ▾
      • →Github
      • →Mastodon
      • →Twitter

Listing iptables rules with line numbers

2018-02-08 ::
#shell  #iptables 

state == 0 && /^-A/ {state=1; chain=$2; counter=1; printf "\n"} state == 1 && $2 != chain {chain=$2; counter=1; printf "\n"} !/^-A/ {state=0} state == 1 {printf "[%03d] %s\n", counter++, $0} state == 0 {print}

read more →

Pelican and theme update

2018-01-26 ::
#administrivia 
read more →

Fun with devicemapper snapshots

2018-01-25 ::
#storage  #devicemapper 
read more →

Safely restarting an OpenStack server with Ansible

2018-01-24 ::
#ansible  #openstack 
read more →

Some notes on PWM on the Raspberry Pi

2017-09-26 ::
#raspberrypi  #pwm 
read more →
← Newer posts Older posts →
Lars Kellogg-Stedman :: Theme made by panr