Skip to content

Instantly share code, notes, and snippets.

View ppalone's full-sized avatar
🎯
Focusing

Pranjal Alone ppalone

🎯
Focusing
View GitHub Profile
@ppalone
ppalone / extract.js
Created October 12, 2023 19:59
Extract
const link = `curl -H "Hs-Id: SSAI::A_U:D_NA:G_U:S_MH:M_PUN:N_NA:C1_1:C2_NA:C3_NA:C4_NA:C5_NA:C6_NA:C7_NA:C8_NA:C9_NA:C10_NA:C11_NA:C12_NA:C13_NA:C14_NA:C15_NA:P_P_AN" -H "hotstarauth: st=1697120728~exp=1697121328~acl=/*~hmac=33c9b2a5583084ca86c02f0948ef7bbde271d3a90638a5c56dae911f5e52b2e4" -H "User-Agent: Hotstar;in.startv.hotstar/23.09.29.2.9131 (Android/12)" -H "X-HS-Platform: android" -H "X-HS-Request-Id: 039e1db6-3d9f-46b5-a6ea-1aeabb6da4be" -H "X-HS-Device-Id: 15d2aaf7-6cad-42c9-a93b-4af8e4e47153" -H "Accept-Language: eng" -H "X-HS-Accept-Language: eng" -H "app_name: android" -H "X-HS-Client: platform:android;app_id:in.startv.hotstar;app_version:23.09.29.2;os:Android;os_version:12;schema_version:0.0.1017;brand:Xiaomi;model:M2010J19CI;carrier:JIO%204G;network_data:UNKNOWN" -H "X-HS-Schema-Version: 0.0.1017" -H "X-HS-Client-Targeting: ad_id:15d2aaf7-6cad-42c9-a93b-4af8e4e47153;user_lat:false;hw_id:95efeb4e249078c8" -H "X-HS-APP-ID: e161099e-445a-458f-ae8c-63a57d76f4a1" -H "X-HS-App: 9131" -H "capability:
@ppalone
ppalone / index.js
Last active October 6, 2023 20:47
Node script to download Tokyo revengers manga
// Dependenices
const cheerio = require("cheerio");
const axios = require("axios").default;
const fs = require("fs/promises");
const fscore = require("fs");
const path = require("path");
// constants
const BASE_URL = "https://tokyorevengersmanga.com/";
const FOLDER_NAME = "manga";
@ppalone
ppalone / index.html
Created April 16, 2023 06:52
Simple Audio Visualizer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audio Visualizer 🎵</title>
<style>
* {
nodemon -e 'go,html' --watch './**/*' --signal SIGTERM --exec 'go' run ./main.go
@ppalone
ppalone / validator.go
Created July 10, 2022 10:49
Example usage go-playground/validator/v10
package main
import (
"fmt"
en "github.com/go-playground/locales/en_IN"
ut "github.com/go-playground/universal-translator"
"github.com/go-playground/validator/v10"
entrans "github.com/go-playground/validator/v10/translations/en"
)
@ppalone
ppalone / gist:354e74ae1df0c24e794bc0f546c9c3c3
Created May 30, 2022 15:36
Creating a launcher in ubuntu.
# https://askubuntu.com/questions/64222/how-can-i-create-launchers-on-my-desktop
sudo gedit /usr/share/applications/example.desktop
# example.desktop
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
@ppalone
ppalone / gist:731d2ceef7762fa7b2de2a276e5e4b87
Created April 9, 2021 08:22
How to add SASS or SCSS stylesheet to a React App?
# Note requires react-scripts@2.0.0 or higher
npm install node-sass --save
# or
yarn add node-sass
# Rename all files from *.css to *.scss