Skip to content

Instantly share code, notes, and snippets.

View ethan605's full-sized avatar

Thanh Nguyen ethan605

View GitHub Profile
@ethan605
ethan605 / Vietnamese characters
Last active March 30, 2023 01:53
Vietnamese characters
AÀÁẢÃẠ
ĂẰẮẲẴẶ
ÂẦẤẨẪẬ
BC
EÈÉẺẼẸ
ÊỀẾỂỄỆ
GH
IÌÍỈĨỊ
KLMN

Keybase proof

I hereby claim:

  • I am ethan605 on github.
  • I am ethan605 (https://keybase.io/ethan605) on keybase.
  • I have a public key whose fingerprint is 4B32 8F02 F02A 0D5C 2312 7E7E C086 CD9B 4DBC BBC0

To claim this, I am signing this object:

@ethan605
ethan605 / !nerdfont-icons
Last active March 30, 2023 12:33
List all icons supported by a nerd font
We couldn’t find that file to show.
@ethan605
ethan605 / qrgpg.sh
Last active January 6, 2026 13:17
qrgpg - encode/decode ASCII armoured file to/from QRCode images
#!/usr/bin/env bash
set -Eeuo pipefail
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
# YELLOW=$(tput setaf 3)
NORMAL=$(tput sgr0)
readonly RED GREEN NORMAL COMMAND="qrgpg"
SUB_COMMAND=""
@ethan605
ethan605 / print256colours.sh
Created September 11, 2020 14:43 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
export type SystemTypes = 'os' | 'browser';
export type SystemAttribute = {
codeName: string;
name: string;
versionPrefix: string;
};
export type SystemInfo = {
name: string;
@ethan605
ethan605 / !nuc_arch_qemu_gpu_passthrough
Last active June 17, 2021 16:02
Intel NUC10i7FNH/K + Arch Linux: QEMU/KVM Windows 10 guest with CPU pinning + GPU passthrough with Intel GVT-g + Hugepages
We couldn’t find that file to show.
@ethan605
ethan605 / !google_chrome_fake_media_stream
Last active December 11, 2021 14:16
Google Chrome with fake media stream
We couldn’t find that file to show.
@ethan605
ethan605 / machine.js
Last active April 14, 2021 15:57
Generated by XState Viz: https://xstate.js.org/viz
const docVideoFlow = Machine({
id: 'docVideo',
type: 'parallel',
states: {
recordState: {
initial: 'hideButton',
states: {
hideButton: {
on: {
NEXT_RECORD_STATE: 'showButton'
@ethan605
ethan605 / machine.js
Created April 14, 2021 15:58
Generated by XState Viz: https://xstate.js.org/viz
const trafficLight = Machine({
id: 'trafficLight',
initial: 'red',
states: {
red: {
on: {
TIMER: 'amber'
}
},
amber: {