This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# function to set the tab name in Terminal | |
function tabname { | |
printf "\e]1;$1\a" | |
} | |
function nano { | |
tabname $1 && /usr/bin/nano $1 && tabname "bash"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.conversation-module > li:after, .conversation-module > li:before { | |
display: none; | |
} | |
ol.conversation-module li.conversation-root, | |
ol.conversation-module li.conversation-ancestor { | |
display: none; | |
} | |
li.js-has-navigable-stream.open ol.conversation-module li.conversation-root, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# convert a twitter tweet export (e.g. tweets.js) or like export (e.g. likes.js) to a csv | |
# usage: python convert-tweet-archive.py filename.js | |
import sys | |
import json | |
import csv | |
import os | |
from datetime import datetime | |
with open(sys.argv[1], encoding='utf-8') as f: |