Skip to content

Instantly share code, notes, and snippets.

@KorigamiK
KorigamiK / 0.json
Last active October 16, 2022 20:42
web3 test
{
"test": "data"
}
@KorigamiK
KorigamiK / createCrawlJobs.ts
Last active August 11, 2022 13:32
Jdownloader CrawlJobs Schema
const fs = require("fs");
interface Job {
downloadFolder?: null | String; // null,
chunks?: number; // 0,
overwritePackagizerEnabled?: true | false; // true,
extractAfterDownload?: null | "UNSET" | "TRUE" | "FALSE"; // "UNSET",
priority?:
| null
| "HIGHEST"
@KorigamiK
KorigamiK / jee-main-answers-parser.user.js
Created August 4, 2022 18:48
JEE Mains Marks calculator
// ==UserScript==
// @name JEE Mains Answers capture
// @match https://test.cbexams.com/*
// @description This script detects parses your entered answers into a computer readable format
// ==/UserScript==
const returnData = [] // stores all the answers
const cb = document.createElement('input')
@KorigamiK
KorigamiK / test.json
Last active July 17, 2022 07:38
test.json
[
{
"_id": "62d30558bcfa950f0a373eb4",
"title": "rice",
"cost": 21.5
},
{
"_id": "62d30602bcfa950f0a373eb5",
"title": "daal",
"cost": 17.7
@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.

@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 / 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 / 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 / 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 / quiz_compiler.py
Last active February 5, 2025 15:20
A user script for tamper/violent monkey to get all the course content of any course on nptel.ac.in
# %%
import json
# %%
PREAMBLE = '''---
title: Organizational Behaviour
papersize: a4
numbersections: false
documentclass: scrartcl
toc: false