Skip to content

Instantly share code, notes, and snippets.

View thunder-coding's full-sized avatar

Yaksh Bariya thunder-coding

View GitHub Profile

Note

Some of the tricks mentioned in this document are advanced and might not be suited for begineer level. If you are facing trouble understanding this, you might want to come back to this later after a few weeks.

Fast input test (without VS Code)

A small terminal-based workflow for compiling/running Codeforces-style solutions quickly, with local-only debug code and a couple of micro-benchmarks.

@thunder-coding
thunder-coding / random-color.service
Created September 5, 2025 07:09
Random keyboard color for ASUS TUF F15 on Linux (requires openrgb)
[Unit]
Description=Random Color service
[Service]
Nice=19
CPUSchedulingPolicy=idle
ExecStart=/root/random-color.sh
[Install]
WantedBy=multi-user.target
@thunder-coding
thunder-coding / download-pdfs.js
Last active May 10, 2023 05:36
Download all pdf on page
const anchors = Array.from(document.getElementsByTagName('a'));
const links = anchors.map(anchor => anchor.href.toString());
const pdfs = links.filter(link => link.endsWith('.pdf'));
let clipboardText = '';
for (const pdf of pdfs) {
clipboardText += `curl '${pdf}' -Lo '${pdf.substr(pdf.lastIndexOf('/') + 1)}'\n`
}
setTimeout(() => navigator.clipboard.writeText(clipboardText), 1000)
@thunder-coding
thunder-coding / Articles.css
Created March 5, 2021 03:25
Hashnode Custom CSS
.blog-theme-switcher{
animation: rotate 5s infinite;
}
@keyframes rotate {
0% {transform: rotate(0deg);}
50% {transform: rotate(240deg);}
100% {transform: rotate(0deg);}
}