Skip to content

Instantly share code, notes, and snippets.

Raffi Minassian raffi-minassian

Block or report user

Report or block raffi-minassian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@raffi-minassian
raffi-minassian / index.js
Created Sep 27, 2016
Quick and dirty auth0 user export to csv using node.js.
View index.js
/*
Create a dir, install 3 dependent packages, copy this index.js file to dir, run with node ./index.js > users.csv
*/
var async = require('async')
var req = require('request')
var stringify = require('csv-stringify')
var fs = require('fs')
var url = "https://your-subdomain.auth0.com/api/v2/users" //your management api endpoint
@raffi-minassian
raffi-minassian / s3copy-across-aws-accounts.js
Last active Mar 20, 2018
Quick and dirty script to copy files in AWS S3 to an S3 bucket in another AWS account with Node.js.
View s3copy-across-aws-accounts.js
/*
* This is a quick and dirty script for copying files in AWS S3 to other buckets.
* This is written so it can work across AWS accounts.
* You can hack in code to apply work or logic to each file.
*
* For each file, it downloads locally to a tmp file and then starts uploading as soon as possible
* and deletes the file immediately when the upload is done.
*
* Best way to use: Spin up a micro in EC2, install node.js,
* create a directory and install the dependencies with
You can’t perform that action at this time.