Skip to content

Instantly share code, notes, and snippets.

View knwng's full-sized avatar
🐱

Kyle Wang knwng

🐱
  • Mountain View, CA
  • 03:58 (UTC -07:00)
View GitHub Profile
@knwng
knwng / .tcshrc
Created November 13, 2024 21:24
Switch from tcsh to zsh without sudo
setenv SHELL /usr/bin/zsh
exec /usr/bin/zsh -l
@knwng
knwng / cpp.json
Created November 12, 2024 00:21
VSCode Cpp Snippets
{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@knwng
knwng / bash.code-snippets
Created November 12, 2024 00:21
VSCode Bash Snippets
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
@knwng
knwng / python.json
Created November 12, 2024 00:20
VSCode Python Snippets
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@knwng
knwng / config.toml
Created November 5, 2024 21:03
Atuin config file. Put it in ~/.config/atuin/config.toml
filter_mode = "host"
filter_mode_shell_up_key_binding = "session"
@knwng
knwng / .wezterm.lua
Last active September 30, 2024 19:42
My Wez Term config for windows
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.color_scheme = 'Bamboo'
@knwng
knwng / .zshrc
Created September 27, 2024 19:12
zsh key bind
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
bindkey '^H' backward-kill-word

Oh my zsh.

Install Zsh

sudo apt-get install -y zsh

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@knwng
knwng / thinkpad_keyboard_mapping.ahk
Created September 26, 2024 01:40
Thinkpad Keyboard Mapping
#Requires AutoHotkey v2.0
LAlt::LCtrl
LCtrl::LAlt
@knwng
knwng / hhkb_keyboard_mapping.ahk
Last active February 20, 2025 19:26
HHKB keyboard mapping using AutoHotKey
#Requires AutoHotkey v2.0
; Switch between tabs
^!Right::SendInput '^{PgDn}'
^!Left::SendInput '^{PgUp}'
; Jump a word
!Left::SendInput '^{Left}'
!Right::SendInput '^{Right}'