Skip to content

Instantly share code, notes, and snippets.

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

Amit amitdeshmukh

💭
herding 🦙🦙🦙
View GitHub Profile
@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