This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SESSION="app" | |
PROJECT_PATH="~/projects/app" | |
cd $PROJECT_PATH | |
tmux new-session -d -s $SESSION | |
tmux rename-window -t 1 'backend' | |
tmux new-window -t $SESSION:2 -n 'frontend' | |
tmux new-window -t $SESSION:3 -n 'backend-src' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fetch the latest changes from the remote and prune deleted branches | |
git fetch --prune | |
# Get a list of all local branches | |
local_branches=$(git branch --format='%(refname:short)') | |
# Get a list of all remote branches | |
remote_branches=$(git branch -r --format='%(refname:short)' | sed 's/origin\///') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION=2.37.3 | |
curl -o git.tar.gz "https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz" | |
tar -zxf git.tar.gz | |
cd "git-$VERSION" | |
make prefix=/usr/local all | |
sudo make prefix=/usr/local install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
JAVA_VERSION=jdk1.8.0_05 | |
JAVA_FILE_NAME="jdk-8u5-linux-i586.tar.gz" | |
sudo tar xvzf "${JAVA_FILE_NAME}" -C /usr/java | |
JAVA_HOME="/usr/java/${JAVA_VERSION}/" | |
sudo update-alternatives --install /usr/bin/java java ${JAVA_HOME%*/}/bin/java 20000 | |
sudo update-alternatives --install /usr/bin/javac javac ${JAVA_HOME%*/}/bin/javac 20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git clone https://github.com/vim/vim.git | |
cd vim | |
git pull | |
cd src | |
make distclean # if you build Vim before | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TMUX_VERSION=3.3 | |
sudo apt-get update | |
sudo apt-get install -y libevent-dev libncurses-dev make | |
wget "https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz" | |
tar xvzf "tmux-${TMUX_VERSION}.tar.gz" | |
cd "tmux-${TMUX_VERSION}/" | |
./configure && make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# INCLUDES | |
# -------- | |
# Local/Private config goes in the include | |
[include] | |
path = ~/.gitconfig.local | |
[core] | |
editor = /usr/bin/vim | |
excludesFile = ~/.gitignore | |
longpaths = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need to install jq | |
docker network inspect $(docker network ls | awk '$3 == "bridge" { print $1}') | jq -r '.[] | .Name + " " + .IPAM.Config[0].Subnet' - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap prefix to Control + a | |
set -g prefix C-a | |
# bind 'C-a C-a' to type 'C-a' | |
bind C-a send-prefix | |
unbind C-b | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' |
NewerOlder