Skip to content

Instantly share code, notes, and snippets.

View pranaysy's full-sized avatar

Pranay S. Yadav pranaysy

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tallguyjenks
tallguyjenks / logseq-Gruvbox.css
Last active August 11, 2025 03:21
Logseq Gruvbox
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282828;
--light-background: #3c3836;
--lighter-background: #504945;
--dark-background: #3c3836;
--darker-background: #1d2021;
--foreground: #ebdbb2;
--current-line: #504954;
@pranaysy
pranaysy / lz76benchmarks.py
Last active November 6, 2025 08:14
Comparison of LZ76 complexity implementations
"""
A demo comparison of three different implementations for estimating Lempel-Ziv complexity (1976)
Implementations compared:
- Pure Python version, by Naereen
- Numba (str), as implemented in EntroPy by Raphael Vallat
- Numba, updated for speed, based on numpy integer arrays
Simple comparisons for equality of estimates and performance to address issue:
https://github.com/raphaelvallat/entropy/issues/14
@nickavem
nickavem / howtoinstalla7000linux.md
Last active December 24, 2025 01:10
How to Install the Netgear A7000 (RTL8812AU/21AU/14AU) Linux Wifi Drivers.

Sources: aircrack-ng/rtl8812au, aircrack-ng/rtl8814au

How to Install the Netgear A7000 (RTL8812AU/21AU/14AU) Linux Wifi Drivers.

Note: This guide is purposefully simple. If you would like more information about what exactly each command is doing, try:

man `the command in question`

or go to the respective source repositories as mentioned above.

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active January 3, 2026 02:20
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \