Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo defaults write /Library/Preferences/com.apple.airport.bt.plist bluetoothCoexMgmt Hybrid
@dhvcc
dhvcc / SwipableTabs.tsx
Last active February 23, 2021 14:54
SwipableTabs component using MaterialUI
import * as React from 'react';
import {HTMLAttributes} from 'react';
import {
AppBar,
createStyles,
makeStyles,
Tab,
Tabs,
Theme,
useTheme,
@andrebrait
andrebrait / keychron_linux.md
Last active April 24, 2025 05:27
Keychron keyboards on Linux + Bluetooth fixes

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

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

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 (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@kachar
kachar / Link-Next13.tsx
Last active July 5, 2024 06:10
Next.js Link + Material UI Link/Button components bundled with forwardRef
@android10
android10 / install_ubuntu_fonts_rehat.md
Last active November 24, 2022 23:05
Install Ubuntu Fonts on RedHat/Fedora Linux

1 - Open the terminal and type below given command

cd /root
yum install wget       (you can skip this step if wget is already installed)
wget https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip (check the newest version)

2 - Check if the directory /usr/share/fonts exist. If the fonts directory do not exist,you can create yourself.