Skip to content

Instantly share code, notes, and snippets.

View shingara's full-sized avatar

Cyril Mougel shingara

  • regate.io
  • Pau ( France )
View GitHub Profile
HttpLog.configure do |config|
# Enable or disable all logging
config.enabled = true
# You can assign a different logger or method to call on that logger
config.logger = Logger.new($stdout)
config.logger_method = :log
# I really wouldn't change this...
# Type de profil : Développeur Ruby On Rails
// Préciser profil polyvalent ? voire full-stack (database, web services, frontend, adminSys)...
## Teezily stack:
* Backend : Ruby on Rails
* Database : MySQL, PostgreSql, Redis
* Test : Rspec, FactoryGirl, Capybara, VCR
* Frontend : Haml, Bootstrap, Sass, Coffee, Javacript (Vanilla Js, Jquery, AngularJS)
* AdminSys : Docker, Passenger, Nginx, AWS
!/bin/bash
if [[ $# -eq 0 ]] ; then
echo 'define a branch to deploy'
exit 0
fi
echo "deploy branch $@"
BRANCH=$@
#! /bin/bash
set -eo pipefail
#usage: sudo ./docker-cleanup-volumes.sh [--dry-run]
dockerdir=/var/lib/docker
volumesdir=${dockerdir}/volumes
vfsdir=${dockerdir}/vfs/dir
allvolumes=()
#!/bin/bash
df -h /dev/sda1
docker rm $(docker ps -a -q)
docker rmi $(docker images -q -f dangling=true)
bash docker-cleanup-volumes.sh
df -h /dev/sda1
#!/bin/bash
#==============================================================================
# Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/asl/
#
@shingara
shingara / config
Created June 5, 2015 08:35
My .ssh/config
Host *
ServerAliveInterval 100
ForwardAgent yes
Host dediboxv3
User shingara
HostName 195.154.119.147
Host fourchette
HostName 195.154.75.177

Organisation des développements de TZ

Voici un draft pour définir un process à mettre en place pour l'organisation des développements applicatif de TZ.

Point d'entrée

Nouvelles fonctionnalités

Les nouvelles fonctionnalités sont défini par Charles. Pour définir la

## Journeys
### Listing journeys
Admin : All except mark private
Pool Manager : On vehicles where pool manager has tag access except mark private
User : All his journey with private journey
### Show journey
require 'spec_helper'
require 'analytics/top_seller'
RSpec.describe Analytics::TopSeller do
before do
Analytics::Storage.redis = InitRedis.get_test
end
after do
Analytics::Storage.redis.flushdb
end