start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #sudo sysctl -w net.inet.ip.portrange.first=32768 | |
| sudo sysctl -w net.inet.ip.portrange.first=12000 | |
| sudo sysctl -w net.inet.tcp.msl=1000 | |
| sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000 |
| # send images to a gmail account | |
| #need to apply a patch to work : http://bugs.python.org/file17551/python-email-encoders-base64-str.patch | |
| #bug : | |
| # generator.py", line 155, in _handle_text raise TypeError('string payload expected: %s' % type(payload)) TypeError: string payload expected: <class 'bytes'> | |
| # | |
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.base import MIMEBase | |
| from email.mime.text import MIMEText |