This file contains hidden or 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
# Tab cycle but list option first | |
bind TAB:menu-complete | |
bind "set show-all-if-ambiguous on" | |
# git branch if in git | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[0;33m\]$(parse_git_branch)\[\033[0m\]\$ ' |
This file contains hidden or 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
export LANGUAGE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
update-locale |
This file contains hidden or 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
# Based on http://ubuntuhandbook.org/index.php/2017/04/custom-screen-resolution-ubuntu-desktop/ | |
xrandr | |
# eDP-1, take note of the device you want to modify | |
cvt 1408x792 # True 16:9 resolution: https://pacoup.com/2011/06/12/list-of-true-169-resolutions/ | |
# Modeline "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync | |
sudo xrandr --newmode "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync | |
sudo xrandr --addmode eDP-1 "1408x792_60.00" | |
echo xrandr --newmode "1408x792_60.00" 90.75 1408 1480 1624 1840 792 795 800 823 -hsync +vsync >> ~/.profile |
This file contains hidden or 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
alias g=git | |
__git_complete g _git | |
alias gti=git | |
__git_complete gti _git |
This file contains hidden or 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
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
docker rmi $(docker images -q) |
This file contains hidden or 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
data "template_file" "inventory" { | |
template = "${file("inventory.tpl")}" | |
vars { | |
backend_ip = "${aws_instance.backend.public_ip}" | |
frontend_ip = "${aws_instance.frontend.public_ip}" | |
landing_ip = "${aws_instance.landing.public_ip}" | |
key_path = "${var.instance_key_path}" | |
} | |
} |
This file contains hidden or 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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "official/centos7" | |
config.vm.box_url = "https://atlas.hashicorp.com/centos/boxes/7/versions/1505.01/providers/virtualbox.box" | |
# NETWORK | |
config.vm.network "private_network", ip: "192.168.56.102" | |
# Explictly set IP |
NewerOlder