Skip to content

Instantly share code, notes, and snippets.

@cinco
cinco / docker-compose.yml
Created March 18, 2019 21:43 — forked from ShakataGaNai/docker-compose.yml
Docker Compose for GitLab EE
gitlab:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.mycompany.tld'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.mycompany.tld'
# https://docs.gitlab.com/omnibus/settings/ssl.html
letsencrypt['enable'] = true
letsencrypt['auto_renew'] = true
@cinco
cinco / vim-nginx-conf-highlight.sh
Created March 23, 2019 06:18 — forked from ralavay/vim-nginx-conf-highlight.sh
Enable syntax highlight for Nginx conf file in Vim
#!/bin/bash
#
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
cat > ~/.vim/filetype.vim <<EOF
@cinco
cinco / adminer-apache-ubuntu-16.04.md
Created March 25, 2019 17:27 — forked from dbirks/adminer-apache-ubuntu-16.04.md
Install Adminer with Apache on Ubuntu 16.04

Adminer is in the repos, so install it with:

apt install adminer

Copy the configuration to your available configs folder and enable it.

cp /etc/adminer/apache.conf /etc/apache2/conf-available/adminer.conf
@cinco
cinco / gist:c24790e6316ff2e60c64f6011960074b
Created April 1, 2019 04:12 — forked from cecepm/gist:5628827
Setup ZSH with help from oh-my-zsh

Setup ZSH with help from oh-my-zsh

iTerm in action

Installing oh-my-zsh

Clone repository

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
function get_os {
base=`uname`
if [ $base == 'Darwin' ]; then
brew install zsh zsh-completions;
elif [ $base == 'Linux' ]; then
os=`lsb_release -i | cut -f 2-`
if [ $os == 'Ubuntu' ]; then
sudo apt install zsh -y;
elif [ $os == 'Fedora' ]; then
sudo dnf install zsh -y;
@cinco
cinco / powerline.zsh-theme
Created April 1, 2019 04:12 — forked from marcadams/powerline.zsh-theme
Powerline theme for oh-my-zsh
# FreeAgent puts the powerline style in zsh !
if [ "$POWERLINE_DATE_FORMAT" = "" ]; then
POWERLINE_DATE_FORMAT=%D{%Y-%m-%d}
fi
if [ "$POWERLINE_RIGHT_B" = "" ]; then
POWERLINE_RIGHT_B=%D{%H:%M:%S}
elif [ "$POWERLINE_RIGHT_B" = "none" ]; then
POWERLINE_RIGHT_B=""
@cinco
cinco / .zshrc
Created April 1, 2019 04:13 — forked from vofp/.zshrc
ZSH=$HOME/.oh-my-zsh
plugins=(git ruby rails sublime web-search)
ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
@cinco
cinco / dig_cs.sh
Created April 15, 2019 12:01 — forked from tuksik/dig_cs.sh
dig cheat sheet
#Dig HowTo [https://www.madboa.com/geek/dig/]
# get the address(es) for yahoo.com
dig yahoo.com A +noall +answer
# get a list of yahoo's mail servers
dig yahoo.com MX +noall +answer
# get a list of DNS servers authoritative for yahoo.com
dig yahoo.com NS +noall +answer
@cinco
cinco / git-deployment.md
Created May 10, 2019 19:12 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@cinco
cinco / NOTES.md
Created May 11, 2019 05:49 — forked from vik-y/NOTES.md
Docker-compose cheat sheet