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/

Keybase proof

I hereby claim:

  • I am amitdeshmukh on github.
  • I am amitdeshmukh (https://keybase.io/amitdeshmukh) on keybase.
  • I have a public key ASCx3FHYp-IKcDwYEeSm2079P_SeS_VLLZ3NJ6lur98eSQo

To claim this, I am signing this object:

//--------------------------------------------------
// This script creates 'review' edges in OrientDB
//
// Reviews are available from the Yelp dataset as a
// JSON formatted input file with one record per line
//--------------------------------------------------
// declare some variables
var counter = 0;
var record = 0;
// require dependencies
var Oriento = require('oriento');
var async = require('async');
// constructor for Class OrientDB
function OrientDB(){
// configure orientdb client - ensure you change the username and password here
this.server = Oriento({
host: 'localhost',
port: 2424,
//------------------------------------------------
// This script creates nodes in OrientDB
//
// Data is within a JSON formatted input file
// with one record per line
//------------------------------------------------
// declare some variables
var counter = 0; var record = 0;
// require dependencies