Skip to content

Instantly share code, notes, and snippets.

View jaakkolehtonen's full-sized avatar

Jaakko Lehtonen jaakkolehtonen

View GitHub Profile
@jaakkolehtonen
jaakkolehtonen / Preferences.sublime-settings
Created October 30, 2017 21:33
Example Sublime Text User Settings
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
@jaakkolehtonen
jaakkolehtonen / .zshrc
Created October 30, 2017 18:06
Example .zshrc for custom @ohmyzsh config
# Set TERM to xterm-256color
export TERM="xterm-256color"
# Set PATH to common default binaries
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
# Change the default install directory of Oh My Zsh
export ZSH="$HOME/.zsh/oh-my-zsh"
# Use another customization directory
@jaakkolehtonen
jaakkolehtonen / command-line-cheat-sheet.md
Last active October 30, 2017 13:44
Command line cheat sheet

Command Line Cheat Sheet

Shortcuts

Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
@jaakkolehtonen
jaakkolehtonen / n-install-custom-location.sh
Last active September 29, 2017 11:03
Interactively manage @nodejs versions
# Automated installation to custom location ~/.bin/n, with subsequent installation of the latest stable Node.js version:
curl -L https://git.io/n-install | N_PREFIX=~/.bin/n bash -s -- -y
# On your first machine, use the following instructions
# If your Dropbox folder is not in the default location, you'll need to change ~/Dropbox to your location
# 1. Close Sublime Text
# 2. Open Terminal/iTerm
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
# Add a new directory for Sublime inside ~/Dropbox folder
mkdir ~/Dropbox/Sublime
@jaakkolehtonen
jaakkolehtonen / oh-my-zsh-custom-installation.sh
Last active March 19, 2021 00:22
Custom @ohmyzsh installation which keeps ~/.zshrc in sync via @dropbox
# Create hidden folder for Oh My Zsh core installation with subfolders for custom plugins and themes
mkdir -p ~/.zsh/custom/{plugins,themes}
# Clone Oh My Zsh from Github into root of hidden ~/.zsh directory
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.zsh/oh-my-zsh
# Clone Powerlevel9k theme to ~/.zsh/custom/themes folder
git clone https://github.com/bhilburn/powerlevel9k.git ~/.zsh/custom/themes/powerlevel9k
# Fetch and install Nerd Font from Github to be used with our new shell config (http://nerdfonts.com/#downloads), long script but does the job :)