Skip to content

Instantly share code, notes, and snippets.

@hellok
Forked from petermanser/_gitlab_config.md
Created October 11, 2013 05:14
Show Gist options
  • Save hellok/6929898 to your computer and use it in GitHub Desktop.
Save hellok/6929898 to your computer and use it in GitHub Desktop.

Gitlab 5.4 - Gmail configuration

In order to send messages through a Gmail account (also applicable to Google Apps accounts) add the following parts to your config files:

Files:

  • config/environments/production.rb
  • config/gitlab.yml
## Email settings
# Email address used in the "From" field in mails sent by GitLab
email_from: youruser@yourdomain.com
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => 'smtp.gmail.com',
:port => 587,
:domain => 'gmail.com',
:user_name => 'youruser@yourdomain.com',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true
}
@hellok
Copy link
Author

hellok commented Oct 12, 2013

!/usr/bin/env zsh

if ! [ -e "$HOME/.ssh/id_rsa.pub" ]
then
echo "Generating ssh key..."
echo "Please enter the email you want to associate with your ssh key: \c"
read email
ssh-keygen -t rsa -C "$email"
fi

if [[ ! -x $(/usr/bin/which -s brew) ]]; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
fi

echo "Put Homebrew location earlier in PATH ..."
echo "\n# recommended by brew doctor" >> ~/.zshrc
echo "export PATH='/usr/local/bin:$PATH'\n" >> ~/.zshrc
source ~/.zshrc

echo "Installing Homebrew Versions..."
brew tap homebrew/versions

echo "Installing Git..."
brew install git

brew update

echo "Installing Build Essentials..."
brew install readline openssl coreutils
brew link --force openssl
brew link --force readline

echo "Installing Handy Tools..."
brew install wget curl tree ctags hub ssh-copy-id keychain zsh vim tmux

echo "Installing Databases..."
brew install mysql redis

echo "Installing Web Servers..."
brew install nginx jetty8

echo "Installing Programming Environments..."
brew install sbt scala node

echo "Installing RVM and Ruby..."
\curl -L https://get.rvm.io | bash -s stable --ruby
source $HOME/.rvm/scripts/rvm
rvm use default --default
gem update --system
gem install bundler

echo "Embracing Cask..."
brew tap phinze/homebrew-cask
brew install brew-cask

echo "Installing Essential Applications with Cask..."
brew cask install google-chrome virtualbox vagrant macvim textmate iterm2 dropbox droplr intellij-community sequel-pro alfred
brew cask alfred link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment