Skip to content

Instantly share code, notes, and snippets.

View kvnxiao's full-sized avatar
🐵

Kevin Xiao kvnxiao

🐵
View GitHub Profile
@kvnxiao
kvnxiao / awesome-selfhosted-sorted-by-stars.md
Last active May 3, 2024 22:11
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@kvnxiao
kvnxiao / awesome-go-sorted-by-stars-2019-12-30.md
Last active March 17, 2024 04:05
awesome-go-sorted-by-stars-2019-12-30.md

Awesome Go

Build Status Awesome Slack Widget Netlify Status

patreon avelino financial support to Awesome Go

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

Contributing

@kvnxiao
kvnxiao / generate_keyboardevent_code_values.js
Last active November 16, 2023 10:31
Generate KeyboardEvent.code values from MDN Table
// Generates string union type values from Keyboard event code values taken from the MDN table located at:
// https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values#code_values_on_windows
const table = document.querySelector("table.standard-table");
const firefox = table.querySelectorAll("tbody > tr > td:nth-child(2) > code:first-child");
const ignoreList = ["\"\"", "\"Unidentified\""];
const codes = [...new Set([...firefox].map((node) => node.innerText))].filter(s => !ignoreList.includes(s));
console.log("export type KeyCode =", codes.join("\n | "));
@kvnxiao
kvnxiao / .zshrc
Last active November 2, 2023 10:08
.zshrc using zgenom
# Aliases
export PATH="$HOME/.local/bin:/opt/rust/bin:$PATH"
alias ls="lsd -a"
alias fd="fdfind"
alias vi="nvim"
alias vim="nvim"
alias ztop="zenith"
alias ljd="python3 $HOME/github/luajit-decompiler/main.py"
setopt histignorealldups sharehistory
@kvnxiao
kvnxiao / awesome-python-sorted-2020-09-27.md
Created September 27, 2020 06:22
awesome-python-sorted-2020-09-27.md
@kvnxiao
kvnxiao / zoom65_via.json
Created May 11, 2022 08:26
zoom65_via.json
{
"name": "zoom65",
"vendorProductId": 2154561541,
"macros": [
"{KC_LALT,KC_F4}",
"{KC_LGUI,KC_Q}",
"",
"",
"",
"",
@kvnxiao
kvnxiao / cargo_install_list.txt
Last active April 26, 2022 04:27
cargo install --list
cargo-update v8.1.2:
cargo-install-update-config.exe
cargo-install-update.exe
jean v0.1.0 (C:\Users\kvnxiao\github\rc-zip\samples\jean):
jean.exe
when-cli v0.4.0:
when.exe
@kvnxiao
kvnxiao / scoop list
Created April 25, 2022 00:16
scoop list
❯ scoop list
Installed apps:
Name Version Source Updated Info
---- ------- ------ ------- ----
fd 8.3.2 main 2022-01-29 20:01:45
ffmpeg 5.0.1 main 2022-04-09 03:04:23
FiraCode-NF 2.1.0 nerd-fonts 2022-04-15 17:04:55
fnm 1.31.0 main 2022-02-17 00:02:01
fzf 0.30.0 main 2022-04-04 18:04:25
@kvnxiao
kvnxiao / wezterm.lua
Last active April 25, 2022 00:12
wezterm.lua
local wezterm = require 'wezterm';
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
default_prog = {
"C:\\Program Files\\PowerShell\\7\\pwsh.exe", "-WorkingDirectory", "~"
}
else
default_prog = {"zsh"}
end
@kvnxiao
kvnxiao / spacebarrc
Created April 11, 2022 21:54
spacebarrc
#!/usr/bin/env sh
spacebar -m config position top
spacebar -m config height 22
spacebar -m config text_font "SF Pro:Medium:12.0"
spacebar -m config icon_font "SF Pro:Medium:12.0"
spacebar -m config background_color 0xff1f2430
spacebar -m config foreground_color 0xffffffff
spacebar -m config space_icon_color 0xffffcc66
spacebar -m config power_icon_color 0xffffa759