Skip to content

Instantly share code, notes, and snippets.

View bitwisebro's full-sized avatar
👾
Lost Somewhere😶‍🌫️

Gaurav Jani bitwisebro

👾
Lost Somewhere😶‍🌫️
View GitHub Profile
@bitwisebro
bitwisebro / Reset Udemy Progress.md
Created October 30, 2022 07:22 — forked from AstralJohn/Reset Udemy Progress.md
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 09/30/2022

Step 1. Go to Udemy course in browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@bitwisebro
bitwisebro / app.js
Created November 22, 2020 07:18 — forked from gilpanal/app.js
The following code demonstrates how to get a file from Telegram without exposing Bot Secret Token in the client side. In this case is used to retrieve a MP3, but the example should work for other file types. An intermediate API, (server.js) built using Node.js, get the raw data of the file and forward it to the web client (index.html and app.js)
const TEL_PATH = '/music/file_352.mp3'
const API_FILEDONWLOAD = 'http://localhost:3000/fileDownload?'
const load = () => {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest()
xhr.open('GET', API_FILEDONWLOAD + TEL_PATH, true)
xhr.responseType = 'arraybuffer'