Skip to content

Instantly share code, notes, and snippets.

View kvnxiao's full-sized avatar
🐵

Kevin Xiao kvnxiao

🐵
View GitHub Profile
@kvnxiao
kvnxiao / arch-linux-install-xps-15-9550.md
Last active April 24, 2020 18:32
arch-linux-install-xps-15-9550.md
@kvnxiao
kvnxiao / scoop-list.txt
Last active September 27, 2020 08:24
scoop list
7zip (v:19.00)
adb (v:30.0.4) [main]
alacritty (v:0.5.0) [extras]
audacity (v:2.4.2) [extras]
bat (v:0.15.4) [main]
bzip2 (v:1.0.8.0) [main]
cmake (v:3.18.3) [main]
coreutils (v:5.97.3) [main]
curl (v:7.72.0_4) [main]
dark (v:3.11.2) [main]
@kvnxiao
kvnxiao / awesome-java-sorted-2019-05-01.md
Last active January 20, 2021 13:47
awesome-java-sorted-2019-05-01.md
@kvnxiao
kvnxiao / typescript-react-component.code-snippets
Created August 7, 2021 06:15
typescript-react-component.code-snippets
{
"TypeScript React Component": {
"scope": "typescriptreact",
"prefix": "tsc",
"body": [
"interface ${TM_FILENAME_BASE}Props {",
" $1",
"}",
"",
"export const ${TM_FILENAME_BASE}: React.FC<${TM_FILENAME_BASE}Props> = ({}: ${TM_FILENAME_BASE}Props) => {",
@kvnxiao
kvnxiao / awesome-rust-sorted-by-stars-2019-04-30.md
Created April 30, 2019 06:37
awesome-rust-sorted-by-stars-2019-04-30.md

Awesome Rust

A curated list of Rust code and resources.

If you want to contribute, please read this.

Table of contents

@kvnxiao
kvnxiao / kvnxiao-win-mac-kbd67hotswap.json
Last active September 8, 2021 22:40
KBDFans67 Hotswap Windows+MacOS layout
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "kbdfans/kbd67/hotswap",
"keymap": "kvnxiao-win-mac-kbd67hotswap",
"layout": "LAYOUT",
"layers": [
[
"KC_GRV",
@kvnxiao
kvnxiao / mangadex-thumbnail-preview.js
Last active October 31, 2021 03:25
mangadex-thumbnail-preview.js
// ==UserScript==
// @name Mangadex Thumbnail Preview
// @namespace https://github.com/kvnxiao
// @version 0.1.2
// @description Thumbnail preview addon for Mangadex
// @author Kevin Xiao
// @match https://mangadex.org/follows
// @grant none
// @require https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js
// @updateURL https://gist.githubusercontent.com/kvnxiao/de9dbdc3bce98d10957df4d5c85492bd/raw
@kvnxiao
kvnxiao / karabiner.json
Last active April 11, 2022 20:22
Karabiner Elements PC-style Modifiers
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@kvnxiao
kvnxiao / DefaultKeyBinding.dict
Created April 11, 2022 21:13
~/Library/KeyBindings/DefaultKeyBinding.dict
{
"\UF729" = "moveToBeginningOfLine:"; // home
"\UF72B" = "moveToEndOfLine:"; // end
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; // shift-home
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; // shift-end
"@\UF729" = "moveToBeginningOfDocument:"; // cmd-home
"@\UF72B" = "moveToEndOfDocument:"; // cmd-end
"@$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; // cmd-shift-home
"@$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; // cmd-shift-end
"@\UF702" = "moveWordLeft:"; // cmd-left
@kvnxiao
kvnxiao / skhdrc
Created April 11, 2022 21:42
shkd for yabai, macos
# focus window
ctrl + alt - i : yabai -m window --focus north
ctrl + alt - j : yabai -m window --focus west
ctrl + alt - k : yabai -m window --focus south
ctrl + alt - l : yabai -m window --focus east
# swap window
ctrl + shift + alt - i : yabai -m window --swap north
ctrl + shift + alt - j : yabai -m window --swap west
ctrl + shift + alt - k : yabai -m window --swap south