Skip to content

Instantly share code, notes, and snippets.

dmglab /
Created Feb 24, 2020
install docker & compose on centos 8 (Feb 2020)
dnf install -y epel-release
dnf install -y gcc python3-pip device-mapper-persistent-data lvm2
dnf config-manager --add-repo=
dnf install docker-ce --nobest -y
systemctl start docker
systemctl enable docker
alternatives --set python /usr/bin/python3
pip3 install docker-compose
View docker-compose.yml
version: '2'
image: ansible/awx_web:latest
container_name: awx_web
- rabbitmq
- memcached
- postgres
View dmglab-root.zsh-theme
# Copyright (c) 2015 Daniel M. Gehrlein
local ret_status="%(?:%{$bg_bold[green]%}%n:%{$bg_bold[red]%}%n%s)"
PROMPT='${ret_status}%{$reset_color%}%{$fg_bold[green]%}%p %{$fg[cyan]%}%~ %{$reset_color%}'
dmglab / dmglab.zsh-theme
Last active Aug 29, 2015
View dmglab.zsh-theme
# Copyright (c) 2015 Daniel M. Gehrlein
local ret_status="%(?:%{$fg_bold[green]%}[%*]:%{$fg_bold[red]%}[%*]%s)"
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%{$reset_color%}'
RPROMPT='$(nvm_prompt_info)$(virtualenv_prompt_info)% %{$reset_color%}'
dmglab / vagrant_gitignore.rb
Created Apr 16, 2014
Exlclude Rsync by .gitignore
View vagrant_gitignore.rb
## One-Way-Sync with rsync ##
config.vm.synced_folder ".", "/home/vagrant/project", type: "rsync",
rsync__exclude:".gitignore").split(/\r?\n/).delete_if { |elem| (elem.empty?||/^#/=~elem) }

Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text

How to Branch

try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!

Basic usage examples