Skip to content

Instantly share code, notes, and snippets.

View kvnxiao's full-sized avatar
🐵

Kevin Xiao kvnxiao

🐵
View GitHub Profile
@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-python-sorted-2020-09-27.md
Created September 27, 2020 06:22
awesome-python-sorted-2020-09-27.md
@kvnxiao
kvnxiao / install-docker-enterprise-engine-windows-10.ps1
Last active April 12, 2020 03:20
install-docker-enterprise-engine-windows-10.ps1
# Install Windows feature containers
$restartNeeded = $false
if (!(Get-WindowsOptionalFeature -FeatureName containers -Online).State -eq 'Enabled') {
$restartNeeded = (Enable-WindowsOptionalFeature -FeatureName containers -Online).RestartNeeded
}
if (Get-Service docker -ErrorAction SilentlyContinue)
{
Stop-Service docker
}
Set-PSReadlineOption -BellStyle None
Set-Alias -Name vim -Value nvim
Set-Alias -Name open -Value explorer.exe
Set-Alias -Name curl -Value C:\Users\kvnxiao\scoop\apps\curl\current\bin\curl.exe
Set-Alias -Name rm -Value rm.exe
Set-Alias -Name mkdir -Value mkdir.exe
Invoke-Expression (&starship init powershell)
@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 / profiles.json
Created March 8, 2020 05:32
Windows Terminal Settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
@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 / .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-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 / arch-linux-install-xps-15-9550.md
Last active April 24, 2020 18:32
arch-linux-install-xps-15-9550.md