Skip to content

Instantly share code, notes, and snippets.

View cococov's full-sized avatar
🥔
.

Juan Carlos Lamas cococov

🥔
.
View GitHub Profile
@cococov
cococov / keychron_linux.md
Created October 1, 2022 15:16 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@cococov
cococov / Link.js
Created July 20, 2021 02:22 — forked from kachar/Link-Next13.tsx
Next.js Link + Material UI Link/Button components bundled with forwardRef
@cococov
cococov / jira-dark-theme.css
Last active June 3, 2021 06:51
Jira Dark Theme
/* ==UserStyle==
@name Jira Dark theme
@namespace github.com/cococov
@version 2.11.2
@license MIT
@author @cococov
@preprocessor default
==/UserStyle== */
@-moz-document regexp(".*.atlassian.net/jira.*"),
@cococov
cococov / implementationExample.jsx
Created September 18, 2020 23:33
MUI loading snackbar for notistack
// imports...
// declarations...
// fc component things...
const { enqueueSnackbar, closeSnackbar } = useSnackbar();
const initialSnackbarRef = useRef();
const mountedRef = useRef(true);
useEffect(() => {
initialSnackbarRef.current = enqueueSnackbar('Loading...', {