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.
/* | |
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` |
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)") |
// ==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; | |
} |
import math | |
def nCr(n, r): | |
if r == 0: | |
return 1 | |
return math.factorial(n)/(math.factorial(r)*math.factorial(n-r)) | |
// ==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== |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
(async () => { | |
const restart = document.querySelector("#button_correct"); | |
restart.click(); | |
while (1) { | |
await sleep(500); |
## 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 |
#include <fcntl.h> | |
int dup (int fd1) { | |
return (fcntl (fd1, F_DUPFD, 0)); | |
} |
#!/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 |