Skip to content

Instantly share code, notes, and snippets.

@dmglab
dmglab / docker-centos-8.sh
Created Feb 24, 2020
install docker & compose on centos 8 (Feb 2020)
View docker-centos-8.sh
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
View docker-compose.yml
version: '2'
services:
web:
image: ansible/awx_web:latest
container_name: awx_web
depends_on:
- rabbitmq
- memcached
- postgres
View dmglab-root.zsh-theme
# 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 Aug 29, 2015
dmglab.zsh-theme
View 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 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: File.read(".gitignore").split(/\r?\n/).delete_if { |elem| (elem.empty?||/^#/=~elem) }
View git_bible.md

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