Skip to content

Instantly share code, notes, and snippets.

View rolebi's full-sized avatar
🌪️

Ronan Le Bris rolebi

🌪️
  • Meetic
  • Paris, France
View GitHub Profile
@rolebi
rolebi / .travis.yml
Last active May 8, 2018 12:08
Travis AWS codedeploy fail build if deployment fail
env:
global:
# implement your own logic in get_env_for_git_reference.sh
- TARGET_ENV="`test $TRAVIS_TAG && ./get_target_env_for_git_reference.sh $TRAVIS_TAG`"
# ENV integration
- AWS_INTEGRATION_APPLICATION=xxxx
- AWS_INTEGRATION_DEPLOYMENT_GROUP=xxxx
- AWS_INTEGRATION_REGION=xxxx
#AWS_INTEGRATION_ACCESS_KEY
@rolebi
rolebi / .travis.yml
Last active December 30, 2016 09:45
Keep only one build up for each PR in travis
env:
global:
# TRAVIS_ACCESS_TOKEN used to access travis API from within builds
- secure: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
cache:
bundler: true
before_install:
- bundle install
<?php
$client = $this->get('aws_dynamodb.client');
$client->createTable([
'TableName' => 'test_set_management',
'ProvisionedThroughput' => [
'ReadCapacityUnits' => 1,
'WriteCapacityUnits' => 1,
],
'AttributeDefinitions' => [
@rolebi
rolebi / get_branch_for_git_reference.sh
Last active June 17, 2019 06:47
Travis continuous deployment fetch branch associated to current tag (to cleanup)
#!/bin/bash
REFERENCE="$1"
if [ -z "$REFERENCE" ]
then
echo "usage: $0 reference" 1>&2
exit 1
fi
@rolebi
rolebi / elastic-scroll.sh
Last active September 10, 2020 15:32
Export Elastic search as JSON through Kibana console proxy
#!/bin/bash
kb_host="https://XXXXXXXX"
kb_url="$kb_host/api/console/proxy"
index=$1
passw_file=$2
query_file=$3
output_file=$4