Skip to content

Instantly share code, notes, and snippets.

View carloshenriqueribeiro's full-sized avatar

Carlos Henrique carloshenriqueribeiro

View GitHub Profile

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.

nvm ( com última versão do node)
teams
visual code
git
postgres
starUML
slack
gredenciais para github (ssh keys)
zsh
oh-my-posh init pwsh | Invoke-Expression
Import-Module posh-git
Import-Module -Name Terminal-Icons
@carloshenriqueribeiro
carloshenriqueribeiro / settings.json
Created October 1, 2022 21:15
windows terminal
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@carloshenriqueribeiro
carloshenriqueribeiro / settings.json
Last active October 25, 2022 10:47
visual code settings
{
// Define o tema do VSCode
"workbench.colorTheme": "Dracula",
// Configura tamanho e família da fonte
"terminal.integrated.fontSize": 17,
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.fontFamily": "FiraCode NFM",
"editor.fontLigatures": true,
"editor.formatOnSave": false,
namespace ProjectName.Functions
{
using System;
using System.Collections.Concurrent;
using System.Reflection;
public class PatchHelper
{
private static ConcurrentDictionary<Type, PropertyInfo[]> TypePropertiesCache =
new ConcurrentDictionary<Type, PropertyInfo[]>();
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst googlechrome
cinst firefox
cinst fiddler4
cinst git.install
cinst nodejs.install
cinst nodejs.lts
cinst autohotkey.portable
using System.Linq;
namespace PathMap
{
using System;
using System.Collections.Concurrent;
using System.Reflection;
public class MapeamentoUpdate
{
namespace weBlank.Functions
{
using System;
using System.Collections.Concurrent;
using System.Reflection;
public class PatchHelper
{
private static ConcurrentDictionary<Type, PropertyInfo[]> TypePropertiesCache =
new ConcurrentDictionary<Type, PropertyInfo[]>();
public class MyClass
{
// Uso clássico para leitura de arquivo com ReadAsync
public Task<int> ReadAsync(byte [] buffer, int offset, int count);
}