Skip to content

Instantly share code, notes, and snippets.

View SwapnilSoni1999's full-sized avatar
👨‍💻
SGFoYSEgWW91IGRlY29kZWQgaXQuIGxldHMgY29ubmVjdC4K

Swapnil Soni SwapnilSoni1999

👨‍💻
SGFoYSEgWW91IGRlY29kZWQgaXQuIGxldHMgY29ubmVjdC4K
View GitHub Profile
@SwapnilSoni1999
SwapnilSoni1999 / Buildbot-Guide.txt
Created November 28, 2017 16:48
[GUIDE] ROM Compiling from source [Buildbot]
First of all have a brief look at xda threads about compiling rom from source dont follow all stuff from there tho.. just have a look on those threads specially that jackeagle thread.
now first what you need :
If on local
-> Fast internet connection (fast enough to download 50GB rom source without waiting for a day or two xD )
-> 4core cpu(or higher)
-> 8gb minimum ram
-> Linux (Ubuntu for this guide)
---- 14-Sep-2018 12:30:32 AM ----
09-14 00:20:01.938 928 1051 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 1051 (HwBinder:928_1), pid 928 (fingerprint@2.1)
09-14 00:20:02.114 3074 3074 F DEBUG : Build fingerprint: 'Xiaomi/santoni/santoni:7.1.2/N2G47H/V9.5.10.0.NAMMIFD:user/release-keys'
09-14 00:20:02.114 3074 3074 F DEBUG : pid: 928, tid: 1051, name: HwBinder:928_1 >>> /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-custom <<<
09-14 00:20:02.120 3074 3074 F DEBUG : #00 pc 00000000000052f8 /vendor/lib64/hw/fingerprint.searchf.so
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc,char* argv[])
{
if(argc==1) {
printf("\033[0;31m");
printf("\nNo filename provided! Exiting...");
printf("\033[0m \n");
@SwapnilSoni1999
SwapnilSoni1999 / realme.js
Last active April 20, 2019 09:06
Realme Contest R-Power Script - Selenium Script
const webdriver = require('selenium-webdriver'),
By = webdriver.By,
Keys = webdriver.Key;
until = webdriver.until;
const chrome = require('selenium-webdriver/chrome');
const proxy = require('selenium-webdriver/proxy');
const path = require('chromedriver').path;
//env
var currentpath = process.cwd();
@SwapnilSoni1999
SwapnilSoni1999 / accept_req.js
Created April 19, 2019 08:55
Facebook Auto Friend Request Accepter
/*
Open https://www.facebook.com/friends/requests and make sure theres no queries passed after /request
(like /requests?someQueryName=) it should be plain URL. Then open Browser Developer Console and
paste this code and Press Enter Key it will Automatically accept length of the request
(usually around 40-50 person)
Then you have to refresh again to do the thing so.
(C) Swapnil Soni (https://github.com/SwapnilSoni1999)
*/
var i = 0;
var len = document.querySelector('div.phl').children.length;
#!/data/data/com.termux/files/usr/bin/bash
# Get the URL
URL=$1
clear
# Check if its spotify URL or not.
# if it is then execute spotifydl command to download.
@SwapnilSoni1999
SwapnilSoni1999 / README.md
Last active January 27, 2022 20:20
Zoom conference spamming script (selenium)
@SwapnilSoni1999
SwapnilSoni1999 / extractor.js
Last active August 29, 2020 08:45
google form auto filling script
// extractor works after submitting form and clicking on [View Score] button
// once all correct answers are displayed use this script
function isCorrect(el) {
const val = el.querySelector('[aria-label="Incorrect"]')
return val ? false:true
}
function answerFromIncorrect(el) {
return el.querySelector("div.freebirdFormviewerViewItemsItemGradingCorrectAnswerBoxContent > div > label > div > div.docssharedWizToggleLabeledContent > div > span").innerText.split('.')[0]
@SwapnilSoni1999
SwapnilSoni1999 / README.md
Created May 30, 2020 07:20
google form auto filling script for MCQ.
  • paste in dev console
  • call autofillAnswers function
  • pass answer string eg. "DBCCBDBCADCBADBADABC"
  • eg.
autofillAnswers("DBCCBDBCADCBADBADABC")
@SwapnilSoni1999
SwapnilSoni1999 / app.js
Created August 27, 2021 18:29
Express and Socket.io without http module's createServer
const express = require('express')
const socket = require('socket.io')
const PORT = 5000
const app = express()
const server = app.listen(PORT, () => console.log(`Server started on port ${PORT}`))
const io = new socket.Server(server)