$ puppet module install my-module
or
$ git clone path-to-repo.git && ./bin/bootstrap.sh
#!/usr/bin/env bash | |
BACKUP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | |
# Log a message. | |
function log { | |
echo -e " \033[32m*\033[0m ${1}" | |
} | |
# write an error message. | |
function error { | |
echo -e "\033[31m${1}\033[0m" |
#!/usr/bin/env bash | |
ORIG_BRANCH="$(git rev-parse --abbrev-ref HEAD)" | |
git checkout -b release && \ | |
grunt release && \ | |
git add -f public && \ | |
git commit -m 'Latest release' && \ | |
git push -f deploy release:master && \ | |
git tag "release-`date +'%F-%s'`" | |
git checkout "${ORIG_BRANCH}"&& \ |
#!/usr/bin/env bash | |
# This is the project root. | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# Log a message. | |
function log { | |
echo -e " \033[32m*\033[0m ${1}" | |
} | |
# write an error message. |
#!/bin/bash | |
bundle install --deployment --path /var/bundle --without production | |
if [ ! -e "config/database.yml" ] ; then cp config/database.example.yml config/database.yml; fi | |
if [ ! -e ".env" ] ; then cp sample.env .env; fi | |
bundle exec rake db:create | |
bundle exec rake db:schema:load | |
bundle exec rake db:migrate | |
bundle exec rake db:seed |
Declare child mapping:
curl -XPUT 'http://localhost:9200/test' -d '{
"settings": {
"analysis": {
"analyzer": {
"fullfields": {
"tokenizer" : "keyword",
"filter" : ["lowercase"],
"analyzer": "keyword"
<?php | |
namespace Vendor\ApplicationBundle\Tests\Utils; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseTestCase; | |
class WebTestCase extends BaseTestCase | |
{ | |
protected $databaseResetedOnce = false; |
requirejs config and Gruntfile to use with zurb foundation, Backbonejs and lodash or underscorejs.
Works for foundation 4.0 with requirejs 2.x and grunt 0.4
# for dev
$ npm install
# for production
$ npm install --production