Skip to content

Instantly share code, notes, and snippets.

@dysosmus
dysosmus / .zshrc
Last active May 12, 2023 08:38
Tired Commit Message
mcommit=(
"¯\\_(ツ)_/¯"
"¯\\_㋡_/¯"
"(╯°Д°)╯︵/(.□ . \\)"
"(┛◉Д◉)┛彡┻━┻"
"┻━┻︵ \\(°□°)/ ︵ ┻━┻"
"(┛ಠ_ಠ)┛彡┻━┻"
"(ノಠ益ಠ)ノ彡┻━┻"
"(╯°□°)╯︵ ┻━┻"
@dysosmus
dysosmus / iptables-dump.sh
Created April 24, 2014 07:47
Quick iptables dump
#! /bin/bash
target_dir='/etc/fw'
if [ ! -d "$target_dir" ]; then
mkdir -p $target_dir
fi
iptables-save -c > $target_dir/ipV4-dmp-$(date "+%Y-%m-%d--%H-%M-%S")
@dysosmus
dysosmus / Readlink -f for bsd or osx
Last active August 29, 2015 13:57
Readlink -f for bsd/osx