Skip to content

Instantly share code, notes, and snippets.

View tomsiwik's full-sized avatar
🔴
Recording

Tom Siwik tomsiwik

🔴
Recording
View GitHub Profile
@tomsiwik
tomsiwik / setup.sh
Last active July 21, 2022 18:11
TL;DR - My vim IDE
#!/bin/sh
# Get homebrew up & running
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install kitty terminal for zsh
brew install kitty zsh git font-jetbrains-mono-nerd-font neovim
# Install zim
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
@tomsiwik
tomsiwik / .zshrc
Last active January 30, 2019 09:31 — forked from XEngine/.zshrc
ZSH Powerlevel9k Config
# 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=/Users/tom/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
@tomsiwik
tomsiwik / bookmarklet.js
Last active April 25, 2018 08:18
Gitlab Toggle All Discussions
javascript:void(function(){const s=document.createElement('script');s.setAttribute('src','https://cdn.rawgit.com/tomsiwik/e7982cc626a18d13d995ac04d60afbf6/raw/f916fa5f67df43c13b13073a86a198a1dd5d1677/script.js');document.body.appendChild(s);}());
@tomsiwik
tomsiwik / setup.sh
Last active January 30, 2019 09:50
Brew, zsh, tmux, neovim install
#!/bin/sh
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install packages
brew tap sambadevi/powerlevel9k
brew install neovim tmux zsh powerlevel9k
# zsh setup (todo: install iterm2 and default to zsh)
@tomsiwik
tomsiwik / README.md
Last active March 13, 2020 22:11 — forked from PurpleBooth/README-Template.md
My go-to README.md template

{project-name}

{description-short}

@tomsiwik
tomsiwik / global.code-snippets
Last active May 28, 2019 08:29
No more vscode - console.log autoimport madness
// File ▶️ Preferences ▶️ User Snippets ▶️ global.code-snippets ▶️ Save it to `.../vscode/snippets/global.code-snippets`
{
"Print to console": {
"prefix": ["console", "console.", "console.l", "console.lo", "console.log"],
"body": ["console.log($1);"],
"description": "Log output to console"
}
}
@tomsiwik
tomsiwik / reproduce.sh
Last active March 13, 2020 22:10
Lerna, Preact-CLI, Workspaces Bug
#!/bin/sh
# Initializing Lerna
npx lerna init;
# Setup Workspaces
cat <<EOF > package.json
{
"name": "root",
"private": true,
{
"workbench.colorTheme": "Tinacious Design",
"liveshare.presence": true,
"javascript.validate.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@tomsiwik
tomsiwik / setup-linux.sh
Last active November 17, 2021 16:53
Setup WSL with debian & docker
#!/bin/bash
sudo apt update -y && sudo apt upgrade -y
sudo apt install software-properties-common build-essential git wget curl zsh unzip neovim -y
sudo apt install --no-install-recommends apt-transport-https ca-certificates gnupg2 -y
# oh my zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k