Skip to content

Instantly share code, notes, and snippets.

View .tmuxline.conf
# This tmux statusbar config was created by tmuxline.vim
# on Tue, 23 Nov 2021
set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=colour231,bg=colour31"
set -g status-right-style "none"
set -g pane-active-border-style "fg=colour8"
set -g status-style "none,bg=#16181c"
View Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
brew "python@3.10"
brew "autojump"
brew "azure-cli"
brew "docker-compose"
brew "fd"
brew "gh"
pwang2 / vi.bat
Last active Oct 31, 2022
open windows file using wsl nvim
View vi.bat
@echo on
set my_app=/home/linuxbrew/.linuxbrew/bin/nvim
set my_wt_profile="Ubuntu"
set pp=%1
:: remove quote
set pp=%pp:"=%
:: wsl can't handle mapped drive
if "%pp:~1,1%"==":" (
if not "%pp:~0,1%"=="C" (
pwang2 / windows.ahk
Last active Oct 31, 2022
Autohotkey settings to help switch between windows and mac easier
View windows.ahk
Send ^w
TrayTip "Reload", "Success"
pwang2 / init-prev.vim
Last active Nov 25, 2022
init-prev.vim - vimscript config
View init-prev.vim
set title
set wrap
set splitright
set expandtab
set splitbelow
set number
set relativenumber
set termguicolors
set nofoldenable
set mouse =a
sh -c "$(curl -fsSL"
brew install --cask macs-fan-control alt-tab dozer hammperspoon alacritty
brew install autojump neovim yarn
mkdir -p $HOME/.hammerspoon/Spoons
cd $_
curl -sSLO
View tmux-256color.src
# Reconstructed via infocmp from file: /usr/local/Cellar/ncurses/6.3/share/terminfo/74/tmux-256color
tmux-256color|tmux with 256 colors,
OTbs, OTpt, am, hs, km, mir, msgr, xenl, AX, G0,
colors#0x100, cols#80, it#8, lines#24, pairs#0x32767, U8#1,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=\r,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
View startup-screen.lua
local status_ok, alpha = pcall(require, 'alpha')
if not status_ok then return end
local path_ok, path = pcall(require, 'plenary.path')
if not path_ok then return end
local nwd = require('nvim-web-devicons')
local dashboard = require('alpha.themes.dashboard')
local cdir = vim.fn.getcwd()
pwang2 / init.lua
Last active Nov 28, 2022
neovim init.lua
View init.lua
-- vm: ft=lua ts=2 sw=2 expandtab
-- ~/.config/nvim/init-prev.vim
local vimrc = os.getenv('MYVIMRC') or ''
vim.cmd('source ' .. string.gsub(vimrc, '.lua', '-prev.vim'))
require 'impatient' -- .enable_profile()
require 'startup-screen'
require 'Comment'.setup()
local cmp = require('cmp')
View colortest
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See
set -eu # Fail on errors or undeclared variables