Skip to content

Instantly share code, notes, and snippets.

@dmglab
dmglab / docker-centos-8.sh
Created February 24, 2020 16:00
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=https://download.docker.com/linux/centos/docker-ce.repo
dnf install docker-ce --nobest -y
systemctl start docker
systemctl enable docker
alternatives --set python /usr/bin/python3
pip3 install docker-compose
@dmglab
dmglab / docker-compose.yml
Created February 24, 2020 15:51
awx docker-compose
version: '2'
services:
web:
image: ansible/awx_web:latest
container_name: awx_web
depends_on:
- rabbitmq
- memcached
- postgres
# Copyright (c) 2015 Daniel M. Gehrlein
# http://dmg.mit-license.org/
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 / dmglab.zsh-theme
Last active August 29, 2015 14:13
dmglab.zsh-theme
# Copyright (c) 2015 Daniel M. Gehrlein
# http://dmg.mit-license.org/
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%}'
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
@dmglab
dmglab / vagrant_gitignore.rb
Created April 16, 2014 12:16
Exlclude Rsync by .gitignore
## One-Way-Sync with rsync ##
config.vm.synced_folder ".", "/home/vagrant/project", type: "rsync",
rsync__exclude: File.read(".gitignore").split(/\r?\n/).delete_if { |elem| (elem.empty?||/^#/=~elem) }
@dmglab
dmglab / git_bible.md
Last active March 9, 2024 02:59
how to git

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