start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/python3 | |
import csv | |
skipRow = True | |
with open( 'toodledo_current.csv', newline = '' ) as inFile: | |
reader = csv.reader( inFile ) | |
with open( 'todoist_import.csv', 'w', newline = '' ) as outFile: | |
writer = csv.writer( outFile ) | |
writer.writerow( [ "TYPE", "CONTENT", "PRIORITY", "INDENT", "AUTHOR", "RESPONSIBLE", "DATE", "DATE_LANG", "TIMEZONE" ] ) |
[alias] | |
autoremove = "!f() { \ | |
whitelist=\"master|dev|legacy\"; \ | |
git fetch --prune; \ | |
if [ -z \"$1\" ]; then \ | |
list=$(git branch --merged | egrep -v \"(^\\*|$whitelist)\") && \ | |
cmd='echo \"$list\" | xargs -n 1 git branch -d'; \ | |
else \ | |
list=$(git branch -r --merged | grep \"$1\" | egrep -v \"(>|$whitelist)\") && \ | |
cmd='echo \"$list\" | cut -d'/' -f2- | xargs -n 1 git push \"$1\" --delete'; \ |
[ | |
{ | |
"name": "Iris Keyboard", | |
"author": "Lewis Ridden" | |
}, | |
[ | |
{ | |
"x": 3, | |
"c": "#c4c8c5", | |
"a": 5 |
# npm using https for git | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."[email protected]:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
# useful for running ssl server on localhost | |
# which in turn is useful for working with WebSocket Secure (wss) | |
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/ |
# The only setting we feel strongly about is the fail_timeout=0 | |
# directive in the "upstream" block. max_fails=0 also has the same | |
# effect as fail_timeout=0 for current versions of nginx and may be | |
# used in its place. | |
# you generally only need one nginx worker unless you're serving | |
# large amounts of static files which require blocking disk reads | |
worker_processes 1; | |
# # drop privileges, root is needed on most systems for binding to port 80 |