Skip to content

Instantly share code, notes, and snippets.

View oasido's full-sized avatar
🐳

Ofek Asido oasido

🐳
View GitHub Profile
@Joao-Peterson
Joao-Peterson / gmk67_linux.md
Last active April 30, 2024 16:43
Using GMK67 keyboard in linux. Function keys not working with Fn!

GMK67 with Archlinux!

Recently i bought a zuoya gmk67 keyboard, it doesn't have a function keys row and has a knob for volume control. Unfortunately, if you plug your gmk67 in a archlinux machine you will notice that using fn+1 will not produce f1 as expected, it will produce a screen brightness decrease, and if you change the physical switch in the back for the macOS mode, the function keys now work, but the modifier keys don't, quite stressful.

Fear not, you can either alter your system configuration so the keyboard functions normally, as in this gist, or remap the keys, as seen in the gist Using GMK67 keyboard in linux with key remaps!.

For this gist we are going to alter the configuration for the apple hid driver on archlinux, since this keyboard uses it, and alter the functionality of the Fn key.

This is tested on archlinux, for any other distro you might have to figure out yourself the correponding commands!

// page.tsx
import PaginationControls from '@/components/PaginationControls'
import Image from 'next/image'
const data = [
'entry 1',
'entry 2',
'entry 3',
'entry 4',
@marcoczen
marcoczen / TroubleShooting-PopOS.txt
Last active April 20, 2023 00:20
PopOS - Some Troubleshooting Commands
::: Some PopOS TroubleShooting Commands - v011 :::
( Mostly curated from posts from the PopOS Telegram Group )
: Apt/Dpkg Package Mgmt :
— sudo apt update
— sudo apt list --upgradable
— sudo apt show package_name
— sudo apt policy package_name
Is It Over Now? (Taylor Taylor Swift
"Slut!" (Taylor's Versi Taylor Swift
Now That We Don't Talk Taylor Swift
Say Don't Go (Taylor's Taylor Swift
I know it won't work Gracie Abrams
Out Of The Blue Jake Scott
Suburban Legends (Taylo Taylor Swift
Living My Best Life Ben Rector
Buy Dirt Jordan Davis & Lu
Feel Something Joshua Bassett
@mjackson
mjackson / redirects-in-react-router-v6.md
Last active November 12, 2023 07:32
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

@amazingidiot
amazingidiot / README.md
Created August 14, 2021 09:56
Pipewire virtual devices as systemd user services

Create pipewire virtual devices as systemd user services

Add both files to ~/.config/systemd/user/ and enable them via systemctl --user enable --now pipewire-source-stereo@sourcename.service or systemctl --user enable --now pipewire-sink-stereo@sinkname.service. Change sourcename and sinkname in the command to your needs. You can add multiple devices with different names.

@anichitiandreea
anichitiandreea / typescript_coding_standards.md
Last active April 29, 2024 13:57
TypeScript Code Conventions
@romainl
romainl / Don't use Vim.md
Last active April 15, 2024 22:07
Don't use Vim for the wrong reasons

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.

(In both Windows)
1. Go to C:\Users\{USER}\AppData\Roaming\AnyDesk
2. Copy & Paste 'thumbnails'
3. Open 'user.conf'
4. Replace the line 'ad.roster.items='
5. Done.
// ==UserScript==
// @name No YouTube Volume Normalization
// @namespace https://gist.github.com/abec2304
// @match https://www.youtube.com/*
// @grant none
// @version 2.1
// @author abec2304
// @description Enjoy YouTube videos at their true volume
// @inject-into content
// @run-at document-start