heroku create name-api --remote name-api
heroku create name-web --remote name-web
heroku ps:scale web=1 --remote name-api
heroku ps:scale web=1 --remote name-web
require 'net/http' | |
require 'uri' | |
require 'json' | |
json_file = File.open('rids.json', 'r:bom|utf-8') | |
read_json = json_file.read | |
hashed_json = JSON.parse(read_json) | |
output = File.open('output','w') | |
hashed_json.each_with_index do |rid, index| |
Script to farm XP from Duolingo. Never get demoted again!
Copy and paste the following code in your browser console and hit Enter:
const id=document.cookie.split(';').find(e=>e.includes('logged_out_uuid')).split('=')[1];const{fromLanguage,learningLanguage}=await fetch(`https://www.duolingo.com/2017-06-30/users/${id}?fields=fromLanguage,learningLanguage`,{credentials:'include',headers:{'Content-Type':'application/json'}}).then(r=>r.json());while(true){const session=await fetch('https://www.duolingo.com/2017-06-30/sessions',{body:JSON.stringify({challengeTypes:[],fromLanguage,isFinalLevel:false,isV2:true,juicy:true,learningLanguage,smartTipsVersion:2,type:'GLOBAL_PRACTICE'}),credentials:'include',headers:{'Content-Type':'application/json'},method:'POST'}).then(r=>r.json());await fetch(`https://www.duolingo.com/2017-06-30/sessions/${session.id}`,{body:JSON.stringify({...session,heartsLeft:0,startTime:(+new Date()-60000)/1000,enableBonusPoints:false,endTime:+new Date()/1000,failed:false,maxInLessonStreak: