Skip to content

Instantly share code, notes, and snippets.

# On your vagrant machine
# on command line to duplicate scotchbox.local.conf
# sudo cp /etc/apache2/sites-available/scotchbox.local.conf /etc/apache2/sites-available/test.local.conf
# Edit this file test.local.conf
# sudo nano /etc/apache2/sites-available/test.local.conf
# put this line :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test.local
@marcodamm
marcodamm / gist:447bf99bea7c8bdd76085bf36a56080f
Created December 30, 2016 00:28 — forked from stevegrunwell/gist:6286357
Easily add a new Bitbucket repo on a Redmine server. Add this to the Redmine user's .bash_profile, run `bitbucket-add-repository <slug>`, then add the repo to Redmine project configuration. Modifying this to use with Github is trivial, just update git@bitbucket.org to git@github.com (and update textual references, of course).
# Create a bare clone in ~/git_repositories/{slug}.git
# Before running this command ensure that the repo on Bitbucket has an appropriate deploy key.
# You'll also want to set a POST hook (e.g. http://{redmine}/github_hook?project_id={slug})
#
# Usage: bitbucket-add-repository <slug>
function bitbucket-add-repository {
base=/home/redmine/git_repositories/
if [ -n "$1" ]; then
path=$base$1.git