Skip to content

Instantly share code, notes, and snippets.

View cdimitroulas's full-sized avatar

Christos Dimitroulas cdimitroulas

View GitHub Profile
@cdimitroulas
cdimitroulas / browser-split.patch
Created December 7, 2022 17:33
Patch file for msw/interceptors showing changes to split browser/node builds
diff --git a/package.json b/package.json
index d3055f6..9e40a29 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"test:integration:node": "jest --c test/jest.node.config.js --runInBand",
"test:integration:browser": "jest --c test/jest.browser.config.js",
"clean": "rimraf lib",
- "build": "yarn clean && cross-env NODE_ENV=production tsup --splitting",
+ "build": "yarn clean && cross-env NODE_ENV=production tsup",
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/cdimitroulas/.oh-my-zsh"
ZSH_THEME="spaceship"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@cdimitroulas
cdimitroulas / init.vim
Last active June 24, 2020 21:44
Neovim config file for personal computer
if empty(glob('~/.vim/autoload/plug.vim'))
silent !sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
autocmd VimEnter * PlugInstall --sync | source ~/.config/nvim/init.vim
endif
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
set -g default-terminal "screen-256color"
set -sg escape-time 0
# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"