Skip to content

Instantly share code, notes, and snippets.

View vunhatchuong's full-sized avatar

Vu Nhat Chuong vunhatchuong

  • 12:52 (UTC +07:00)
View GitHub Profile
@aleksbrgt
aleksbrgt / config.h
Last active June 29, 2026 20:50
QMK Oled animation (Arasaka)
/*
This is the c configuration file for the keymap
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@Zyst
Zyst / KeyBR Colemak-DH ANSI.js
Last active November 21, 2023 07:18
Makes the KeyBR Colemak Layout be Colemak-DH on an ANSI Keyboard. Install with TamperMonkey
// ==UserScript==
// @name KeyBR Colemak-DH
// @namespace http://tampermonkey.net/
// @version v1.1
// @description Switch Colemak layout in keybr.com to Colemak DH
// @author https://github.com/Zyst
// @match https://www.keybr.com/
// @icon https://www.google.com/s2/favicons?domain=keybr.com
// @grant none
// @contributors https://github.com/hilarycheng
@ctjhoa
ctjhoa / gist:127244335a1dc13100214f6076c8480e
Created September 23, 2020 23:00
Install percona without password archlinux

Install percona on archlinux without root password

Install packages

$ pacman -S percona-server-clients percona-server

Start mysql & connect

@Amorpheuz
Amorpheuz / starship.toml
Created June 29, 2020 13:57
My starship.rs configuration!
# Uses Nerd Font symbols, won't appear on GitHub! I use CaskaydiaCove NF.
[aws]
symbol = ""
[battery]
full_symbol = ""
charging_symbol = ""
discharging_symbol = ""
[[battery.display]]
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active May 28, 2026 20:19
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@tkrajina
tkrajina / unmarshal_interface.go
Last active July 3, 2026 10:28
Unmarshal JSON to specific interface implementation
package main
import (
"encoding/json"
"fmt"
"reflect"
)
type Something interface{}
@seven1m
seven1m / init.vim
Last active January 18, 2025 07:49
my vim/neovim config in < 100 LOC
syntax on " enable syntax highlighting
set background=dark " we like it dark!
try | colorscheme gruvbox | catch | endtry " use this awesome theme if possible
highlight Pmenu ctermbg=black guibg=black | " fix popup color so it's easier to read
filetype plugin on " load plugins based on file type
filetype indent on " load indent settings based on file type
set shiftwidth=2 " number of spaces to use for indenting
set softtabstop=2 " number of spaces to use when inserting a tab
set tabstop=2 " show tabs as 2 spaces
set expandtab " convert tabs into spaces
@andrewmilson
andrewmilson / file-upload-multipart.go
Last active June 25, 2026 14:36
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"