Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph jocho-here

  • San Francisco, CA
View GitHub Profile
@jocho-here
jocho-here / somerc.sh
Created March 3, 2020 04:06
Docker related shell commands
View somerc.sh
# Description: Exec into the container using bash
# Usage: dockerexec <docker_container_name>
dockerexec() {
docker exec -it $1 bash
}
# Description: Show current docker containers names ONLY
# Usage: dockerps
alias dockerps="docker ps --format \"{{.ID}} {{.Names}}\""
@jocho-here
jocho-here / javascript.vim
Created November 8, 2018 06:46
javascript.vim
View javascript.vim
setlocal softtabstop=2
setlocal tabstop=2
setlocal shiftwidth=2
@jocho-here
jocho-here / .zshrc
Last active August 9, 2019 20:55
.zshrc
View .zshrc
# 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/mgjo5899/.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="theunraveler"
@jocho-here
jocho-here / setup_instruction.txt
Created August 1, 2018 15:35
Ubuntu 18.04 Media Key + Volume Key setup
View setup_instruction.txt
# Ubuntu 18.04 Media Key + Volume Key setup
- Go to Settings -> Devices -> Keyboard
- Go to "Sound and Media" category
- Set personalized shortcuts by clicking ones you would like to configure
View theunraveler.zsh-theme
# Comment
PROMPT='%{$fg[magenta]%}[%c] %{$reset_color%}'
RPROMPT='%{$fg[magenta]%}$(git_prompt_info)%{$reset_color%} $(git_prompt_status)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
@jocho-here
jocho-here / dracula.vim
Created May 14, 2018 16:59
dracula.vim
View dracula.vim
" Dracula Theme v1.2.6
"
" https://github.com/zenorocha/dracula-theme
"
" Copyright 2016, All rights reserved
"
" Code licensed under the MIT license
" http://zenorocha.mit-license.org
"
" @author Trevor Heins <@heinst>
View init.vim
colorscheme dracula
set noshowmatch " Disable highlighting matching bracket
set nohlsearch " Disable highlighting in search
set number " Show line numbers
set textwidth=0 " Hard-wrap long lines as you type them.
set expandtab " Insert spaces when TAB is pressed.
set tabstop=4 " Render TABs using this many spaces.
set shiftwidth=4 " Indentation amount for < and > commands.
set nosmartindent " Keep starting indentation for commenting
@jocho-here
jocho-here / .tmux.conf
Last active August 28, 2019 18:53
.tmux.conf
View .tmux.conf
#remap c-b to c-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
### LOOK & FEEL ###
set -g default-terminal "xterm-256color"
# default statusbar colors
set -g status-style bg=colour235,default,fg=colour179,default