Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Push the code from the private repo and executes bootstrap.sh
AC_PRIVATE_REPO_URL="https://bitbucket.org/bernardo_vale/ac-workstation-wsi.git"
AC_PRIVATE_REPO_NAME="ac-workstation-wsi"
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
/usr/bin/env ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
#!/bin/bash
bash call.sh
@bernardoVale
bernardoVale / docker-compose.yml
Last active April 24, 2019 21:02
Traefik with ssl
version: '2'
services:
traefik:
image: traefik
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/server.crt,/certs/server.key;/certs_br/server.crt,/certs_br/server.key" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https"
ports:
- "80:80"
- "8080:8080"
@bernardoVale
bernardoVale / .vimrc
Created February 11, 2017 17:59
My vimrc
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
# Check your log to check from which command you need to rebase
git log
#Last for commits
git rebase -i HEAD~4
#Rebasing both author and text
git commit --amend --author "Bernardo Vale <bvale@avenuecode.com>"
git rebase --continue
@bernardoVale
bernardoVale / install.bash
Last active February 26, 2017 20:02
Install Avenue Code Workstation
#!/bin/bash
# Push the code from the private repo and executes bootstrap.sh
AC_REPO_URL="https://github.com/bernardoVale/ac-workstation.git"
AC_REPO_NAME="ac-workstation"
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
/usr/bin/env ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
@bernardoVale
bernardoVale / install_test.bash
Last active February 26, 2017 16:49
Install without cloning for test
#!/bin/bash
# Push the code from the private repo and executes bootstrap.sh
AC_REPO_URL="https://github.com/bernardoVale/ac-workstation.git"
AC_REPO_NAME="ac-workstation"
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
/usr/bin/env ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
# Use this approach when you have only the volume
docker run -it --rm \
-v sso_mongodb_production_data:/data/db \
-v $(pwd)/mongo:/backup \
mongo bash
mongod &
mongodump -d ac-sso -c applications -o /backup
@bernardoVale
bernardoVale / .zshrc
Last active April 3, 2017 15:05
zsh_config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/bvale/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
@bernardoVale
bernardoVale / mac_definitions.sh
Last active August 22, 2019 16:51
Mac OSX Utils
defaults write NSGlobalDomain KeyRepeat -int 0
#https://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder