start new:
tmux
start new with session name:
tmux new -s myname
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: dns-sync | |
| # Required-Start: | |
| # Required-Stop: | |
| # Default-Start: S | |
| # Default-Stop: | |
| # Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks | |
| ### END INIT INFO |
| from collections import namedtuple | |
| from json import dumps | |
| from datetime import datetime | |
| def fix_default(default=None): | |
| class TupleButNotNamedTupleMeta(type): | |
| def __instancecheck__(cls, obj): | |
| return isinstance(obj, tuple) and not hasattr(obj, '_fields') | |
| class TupleButNotNamedTuple(metaclass=TupleButNotNamedTupleMeta): |