Skip to content

Instantly share code, notes, and snippets.

View codebykat's full-sized avatar

Kat Hagan codebykat

View GitHub Profile
@codebykat
codebykat / convert-tweet-archive.py
Created November 6, 2022 17:46
convert a twitter tweet export (tweets or likes) to a csv
#!/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:
@codebykat
codebykat / destroy-blue-lines.css
Last active December 22, 2015 23:39 — forked from max/gist:6472731
Hides "conversation view" on Twitter while still preserving the ability to click to expand conversation. This works for me on Chrome.
.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,
@codebykat
codebykat / terminal_tab_names.sh
Created May 10, 2013 01:04
add to ~/.bash_profile to set Terminal tabs to the name of file currently being edited in nano
# 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";
}