Skip to content

Instantly share code, notes, and snippets.

View amitdeshmukh's full-sized avatar
💭
herding 🦙🦙🦙

Amit amitdeshmukh

💭
herding 🦙🦙🦙
View GitHub Profile
@amitdeshmukh
amitdeshmukh / script.js
Last active May 18, 2024 04:53 — forked from gd3kr/script.js
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/
@amitdeshmukh
amitdeshmukh / gist:801da41352f1411441e66a1edb863f49
Created August 24, 2023 11:07 — forked from eparreno/gist:1845561
Install libmagic on Mac OS X via homebrew
$ brew install libmagic
$ brew link libmagic (if the link is already created is going to fail, don't worry about that)
$ env ARCHFLAGS="-arch x86_64" gem install ruby-filemagic -- --with-magic-include=/usr/local/include --with-magic-lib=/usr/local/lib/