start new:
tmux
start new with session name:
tmux new -s myname
""" | |
Two things are wrong with Django's default `SECRET_KEY` system: | |
1. It is not random but pseudo-random | |
2. It saves and displays the SECRET_KEY in `settings.py` | |
This snippet | |
1. uses `SystemRandom()` instead to generate a random key | |
2. saves a local `secret.txt` |
#!/bin/bash | |
# A simple script which will name a tab in iTerm | |
# usage: | |
# $ nametab NewTabName | |
echo "trying to rename the current tab to $@" | |
echo -ne "\033]0;"$@"\007" | |
echo "finished" |