Skip to content

Instantly share code, notes, and snippets.

@mikowl
mikowl / my-vscode-plugins.md
Last active June 21, 2022 16:52
vscode plug-in list

vs code extensions

code --install-extension aaron-bond.better-comments code --install-extension akamud.vscode-javascript-snippet-pack code --install-extension alefragnani.Bookmarks code --install-extension alefragnani.rtf code --install-extension alexanderte.dainty-nord-vscode code --install-extension angelo-breuer.clock code --install-extension atlassian.atlascode code --install-extension BeardedBear.beardedtheme code --install-extension buenon.scratchpads

@mikowl
mikowl / settings.json
Last active September 5, 2022 20:16
vscode config
{
"workbench.colorCustomizations": {
// "editorGroupHeader.tabsBorder": "#303340",
"tab.activeBorder": "#c692ea",
// "editorLineNumber.foreground": "#525a86",
// "statusBar.background": "#011627",
// "statusBar.noFolderBackground": "#011627",
// "statusBar.debuggingBackground": "#011627",
// "statusBar.foreground": "#d6deeb",
// "statusBar.debuggingForeground": "#d6deeb"
@mikowl
mikowl / .vimrc
Last active June 10, 2019 20:54
.vimrc (NerdTree version)
set encoding=utf8
set nocompatible
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-markdown'
Plug 'masukomi/vim-markdown-folding'
@mikowl
mikowl / settings.json
Created April 23, 2019 02:15
My VSCode settings.json
{
"breadcrumbs.enabled": false,
// Editor font
"editor.fontFamily": "'Operator Mono Lig', 'Dank Mono', Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.renderWhitespace": "boundary",
"editor.fontLigatures": true,
"editor.cursorBlinking": "solid",
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
@mikowl
mikowl / oneliners.js
Last active March 28, 2024 20:52
👑 Awesome one-liners you might find useful while coding.
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
@mikowl
mikowl / .vimrc
Last active July 15, 2020 16:51
My vim config
set encoding=utf8
set nocompatible
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-speeddating'
@mikowl
mikowl / Solarizsh9k.terminal
Last active April 12, 2019 20:49
My terminal profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECUwLjEyNDczNTg3
NDQgMC4xMjk5Nzk1MTQ0IDAuMTY0Njg3NSAxTxApMC4wOTQ0NzczNDgwMyAwLjA5NzI0
@mikowl
mikowl / myaliases.plugin.zsh
Last active March 24, 2024 02:11
My bash/zsh aliases
# My aliases
# Easier navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# ls stuff, most are set in lib/directories.zsh
# I use lsd (https://github.com/Peltoche/lsd) for certain listings
@mikowl
mikowl / .zshrc
Last active April 23, 2019 02:04
My .zshrc powerline9k config
export TERM="xterm-256color"
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
KEYTIMEOUT=1
ZSH_THEME="powerlevel9k/powerlevel9k"
@mikowl
mikowl / .hyper.js
Created November 17, 2018 01:30
My hyper.js settings
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"Source Code Pro", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// default font weight: 'normal' or 'bold'
fontWeight: 'normal',