Skip to content

Instantly share code, notes, and snippets.

View KorigamiK's full-sized avatar
🦚

KorigamiK KorigamiK

🦚
View GitHub Profile
@enesien
enesien / shadcn-multi-tag-input.md
Last active October 4, 2024 03:10
shadcn multiple tag input

shadcn/ui multi tag input component

A react tag input field component using shadcn, like one you see when adding keywords to a video on YouTube. Usable with Form or standalone.

Preview

image

Standalone Usage

@mathix420
mathix420 / medium.user.js
Last active November 7, 2024 22:59
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@coreyja
coreyja / victor-mono.css
Last active January 2, 2023 19:17 — forked from pyrho/victor-mono.css
A font file for Blink Shell with the Victor Mono font
/* Non-Italics */
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
font-weight: 200;
src: url(https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/VictorMono/Light/complete/Victor%20Mono%20Light%20Nerd%20Font%20Complete.ttf?raw=true);
}
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
@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==
@bmcbm
bmcbm / setup-nvdia-suspend.sh
Last active November 17, 2024 23:32
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html
# https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
TMP_PATH=/var/tmp
TMPL_PATH=/usr/share/doc/nvidia-driver-460/
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf
@probonopd
probonopd / Wayland.md
Last active November 18, 2024 22:26
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

The Wayland project seems to operate like they were starting a greenfield project, whereas at the same time they try to position Wayland as "the X11 successor", which would clearly require a lot of thought about not breaking, or at least providing a smooth upgrade path for, existing software.

In fact, it is merely an incompatible alternative, and not e

@LukeSmithxyz
LukeSmithxyz / i3config
Created September 23, 2019 10:43
Final i3 configuration
# vim: filetype=i3
# File originally by Luke Smith <https://lukesmith.xyz>
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
#
# export FILE="ranger"
# export TERMINAL="st"
# #---Basic Definitions---# #
@jeeho-ahn
jeeho-ahn / eigen_cmake.md
Last active March 27, 2024 08:51
Setting up CMake for Eigen Library

Setting up CMake for Eigen Library

Yes. THE EIGEN Library.
It is the library lures engineers first by its name then its capability in matrix manipulation that we've only seen in good expensive almighty slow MATLAB, specifically in C++.

Yes, from my experience so far, Eigen Library is AWESOME. It gives the users a giant freedom AND efficiency in matrix operations in a way I wouldn't even be able to even think about to implement alone.

YES IT IS FREE TO USE!
@khardix
khardix / download.py
Created October 6, 2017 11:26
Python AsyncIO/aiohttp downloader with progressbars
#!/usr/bin/env python3.6
import asyncio
from contextlib import closing
import aiohttp
import tqdm
async def download(session, url, progress_queue):
@seanjensengrey
seanjensengrey / tiny.c
Last active September 3, 2024 17:58
Marc Feeley Tiny C compiler
/* file: "tinyc.c" */
/* originally from http://www.iro.umontreal.ca/~felipe/IFT2030-Automne2002/Complements/tinyc.c */
/* Copyright (C) 2001 by Marc Feeley, All Rights Reserved. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*