Skip to content

Instantly share code, notes, and snippets.

for d in dev sys run proc; do sudo mount -o bind /$d /mnt/$d ; done
@addadi
addadi / migratertmtoasana.js
Last active December 2, 2015 14:15
utility script to migrate remember the milk tasks to asana
//migrate rtm tasks to asana
//1. export tasks using https://github.com/aliva/rememberthemilk-export-json and use var rtmTasks to store the json
//2. clean null elements in rtmTasks
//3. use this in browser enviroment with artoo.js (can be used also in nodejs with require instead of injectScript)
//4. get personal access token in profile settings in asana. use it in const part
//5. check workspace id and use it for WS (find it on the console by running client.workspaces.findAll().then(function(x){console.log(x)})). use it in const part
//6. run it "manually" : use init() after underscore, asana and async are loaded. use runMig() after all tags have been added
//7. check error on the console by evaluating errors var
var addTag, addTask;
artoo.injectScript('https://rawgit.com/jashkenas/underscore/master/underscore-min.js', function() {