Skip to content

Instantly share code, notes, and snippets.

@ikennaokpala
Last active July 15, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikennaokpala/ebc411cae115fc81949090bd17cec11a to your computer and use it in GitHub Desktop.
Save ikennaokpala/ebc411cae115fc81949090bd17cec11a to your computer and use it in GitHub Desktop.
BELOW ARE A COLLECTION OF HANDY GOVUK SCRIPTS
sudo gem install bowl
export PROJECTS=$( ls -d /var/govuk/*/ )
for path in $PROJECTS; do
if [[ -f "$path/Gemfile.lock" ]]; then
echo "Bundling $path"
/bin/bash -l -c "cd $path && bundle install" #> /dev/null 2>&1
fi
done
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
export CONTENT_MODELS_DEV=true
alias rgma="RUN_REGRESSION_TESTS=marriage-abroad bundle exec ruby test/regression/smart_answers_regression_test.rb"
alias rga="RUN_REGRESSION_TESTS=true bundle exec ruby test/regression/smart_answers_regression_test.rb"
alias csma="bundle exec rails r script/generate-checksums-for-smart-answer.rb marriage-abroad"
alias sa="cd /var/govuk/smart-answers"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
export PS1="\[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment