Skip to content

Instantly share code, notes, and snippets.

View KorigamiK's full-sized avatar
🦚

KorigamiK KorigamiK

🦚
View GitHub Profile
@KorigamiK
KorigamiK / Calculate JEE Main marks 2021.js
Last active August 4, 2022 18:46
This script will calculate your marks of jee mains from their website. The steps and usage is mentioned in the script
/*
USAGE:
1. Go to `Display Question paper and answer key` on the jeemain.nta.nic.in and log in
2. Open the question paper and the answer key in two different tabs on your browser
3. Question Paper should be a `digialm.com` webspage and the answer key would be a `testservices.nic.in` site
4. Open the developer tools on both the tabs (`ctrl + shift + I` or `F12` is a shortcut for this)
5. Go to the console tab in the developer tools of each tab
6. Now open the question paper tab
7. Copy and then PASTE this file from the start and end of `Get Answers` on the console tab. Press enter
8. Now right click the output that you see and click `Copy Object`
@KorigamiK
KorigamiK / Jee advance papers VMC.py
Last active September 14, 2021 19:55
Download jee advance paper solutions from VMC and also makes a crawljob for jdownloader
import re
from aiohttp import ClientSession as c
import asyncio
from bs4 import BeautifulSoup as bs
import json
template = "https://www.vidyamandir.com/jeeadvanced20{}.html"
template_2 = "https://www.vidyamandir.com/jeeadv20{}.html"
unnecessary = re.compile(r"\sfor.+dvanced\s(?=\d)")
@KorigamiK
KorigamiK / filesize_sort.user.js
Last active May 15, 2022 05:35
Snahp.it User Scripts
// ==UserScript==
// @name snahp.eu Forum Sort Topics by Filesize
// @grant none
// @match *://fora.snahp.eu/*
// ==/UserScript==
function sortAllLists(){
Array.from(document.getElementsByClassName('topics')).forEach(sortByFileSize);
return;
}
@KorigamiK
KorigamiK / triangle_quest_2.py
Last active December 30, 2021 21:13
a super hideous problem on hackerrank
import math
def nCr(n, r):
if r == 0:
return 1
return math.factorial(n)/(math.factorial(r)*math.factorial(n-r))
@KorigamiK
KorigamiK / swayam-nptel.user.js
Last active October 16, 2024 23:23
A user script for tamper/violent monkey to get all the course content of any course on nptel.ac.in
// ==UserScript==
// @name NPTEL-Save-Sourse-Content
// @match https://onlinecourses.nptel.ac.in/*
// @grant GM_setValue
// @license MIT
// @description Get all content downloads of any nptel course. \n Adds a button on the nav bar to run the script.
// @version 0.4.4
// @namespace https://greasyfork.org/users/941655
// ==/UserScript==
@KorigamiK
KorigamiK / math game.js
Last active April 19, 2022 10:05
telegram game
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
(async () => {
const restart = document.querySelector("#button_correct");
restart.click();
while (1) {
await sleep(500);
@KorigamiK
KorigamiK / Makefile.am
Last active April 23, 2022 07:53
psplibxml2-makefile.am
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include . doc example fuzz xstc $(PYTHON_SUBDIR)
DIST_SUBDIRS = include . doc example fuzz python xstc
AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include
@KorigamiK
KorigamiK / dup.c
Last active April 23, 2022 07:55
file required for pspLibXml2
#include <fcntl.h>
int dup (int fd1) {
return (fcntl (fd1, F_DUPFD, 0));
}
@KorigamiK
KorigamiK / invert-scrolling.sh
Created May 17, 2022 16:17
set natural scrolling for mouse linux
#!/usr/bin/bash
# -*- coding: utf-8 -*-
device_name="PixArt Dell MS116 USB Optical Mouse"
device_id=$(xinput list --id-only "$device_name")
xinput set-prop $device_id "libinput Natural Scrolling Enabled" 0
@KorigamiK
KorigamiK / Install_Huion_Drivers_On_Manjaro.md
Created July 10, 2022 09:53 — forked from shaansubbaiah/Install_Huion_Drivers_On_Manjaro.md
Install Huion 1060plus drivers on Manjaro

Install Huion 1060plus drivers on Manjaro

install (from the AUR) digimend-kernel-drivers-dkms-git and the linux-headers for the kernel you're running.

sudo modprobe -r hid-kye hid-uclogic hid-polostar hid-viewsonic

reboot.