Skip to content

Instantly share code, notes, and snippets.

View AliSawari's full-sized avatar
🌩️
Brainstorming...

Ali Sawari AliSawari

🌩️
Brainstorming...
View GitHub Profile
{"lastUpload":"2020-05-27T15:30:36.153Z","extensionVersion":"v3.4.3"}
@AliSawari
AliSawari / rxjs.array-over-time-iteration.js
Created October 13, 2020 22:47 — forked from allenevans/rxjs.array-over-time-iteration.js
RxJS iterate over an array by time
const keyInputs = [
['n', 1],
['e', 10],
['w', 100],
[' ', 1],
['y', 10],
['o', 100],
['r', 300],
['k', 200]
];
@AliSawari
AliSawari / body-parser.js
Last active January 17, 2024 15:42
Simple Body Parser in Node.js
const { createServer } = require('http');
const server = createServer((request, response) => {
// by default assign maximum of 2KB for Body size if there's no Content-Length
let size = Number(request.headers['content-length']) || 2048;
let bodyData = Buffer.alloc(size);
request.on('data', data => {
for (let x = 0; x < size; x++) {
bodyData[x] = data[x];
@AliSawari
AliSawari / removeFollowers.js
Last active February 18, 2025 18:39
Bulk Remove Instagram[web] followers from account
var allBtns = document.getElementsByClassName('x1i10hfl')
var correctRemoveBtns = []
for(let el of allBtns){
if(el.textContent == 'Remove') correctRemoveBtns.push(el);
}
async function sleep(t){
return new Promise((res, _) => setTimeout(res, t))
}
@AliSawari
AliSawari / config.json
Created February 11, 2025 00:16
V2ray Config file sample (Client to Remote Server)
{
"dns": {
"hosts": {
"domain:googleapis.cn": "googleapis.com"
},
"servers": [
"1.1.1.1"
]
},
"inbounds": [