Skip to content

Instantly share code, notes, and snippets.

Gilles Doge gido

Block or report user

Report or block gido

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gido / docker-compose.example1.yml
Last active Nov 13, 2019
Example to keep your bash history with docker compose
View docker-compose.example1.yml
version: '3.6'
image: ubuntu
# '~/.docker_bash_history' file should exist before mounting
- $HOME/.docker_bash_history:/root/.bash_history
# ...

Keybase proof

I hereby claim:

  • I am gido on github.
  • I am gido ( on keybase.
  • I have a public key ASDxSGyFFy-_-NWltOX0CJvsLNWsAAV5f2UlSUqFD8LG1wo

To claim this, I am signing this object:

gido / stream-example.js
Created Jun 1, 2015
Playing with Stream and Nodejs
View stream-example.js
var request = require("request");
var zlib = require("zlib");
var csv = require("csv-streamify");
var Handlebars = require("handlebars");
var es = require("event-stream");
var tmpl = Handlebars.compile("<li><a href="{{URL}}">{{Name}}</a> ({{City}})</li>");
// HTTP GET Request
gido / bookmarlet-harvest.js
Created May 13, 2015
Bookmarlet to display/preview the total hours in Harvest Estimate
View bookmarlet-harvest.js
var totalH = 0;
var hours = document.getElementsByClassName('item-qty desktop');, function(el) { totalH += parseFloat(el.innerHTML); });
var totalRow = document.querySelector('');
var totalLabelCol = document.querySelector(' td.label');
var totalAmoundCol = document.querySelector('');
var totalHoursCol = document.createElement('td');
totalHoursCol.innerHTML = totalH;
totalRow.insertBefore(totalHoursCol, totalAmoundCol);
gido / diskusage.js
Created Jan 15, 2015
Quick&Dirty script to get total disk usages of each account by crawling the Alwaysdata web administration
View diskusage.js
* run:
* $ casperjs diskusage.js --user=myaccount --password=mypassword
* This script can lookup for env variables:
var casper = require('casper').create({
//verbose: true,
gido /
Last active Dec 28, 2015
# get this value from 'uname -m'
# get this value from 'php -i|grep "PHP Extension"'
# cd shared/
# download Drush
curl -C - -O -s
# unarchive
tar -xf drush*.tar.gz
# set permissions
chmod u+x drush/drush
gido / gist:5318356
Created Apr 5, 2013
Install PEAR on Alwaysdata
View gist:5318356
# configure pear on your HOME
pear config-create ~ ~/.pearrc
# Install PEAR
pear install -o PEAR
# Add bin_dir to your path
echo "export PATH=$PATH:~/pear" >> .bash_profile
gido /
Last active Dec 4, 2019
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.8 - homebrew environnement


This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

PHP 5.4 installed with Homebrew.

Update: I wrote a blog post about this.


Download the following files from Oracle website (yes, you need to create an account and accept terms):

gido / deploy.rb
Created Dec 11, 2012
Our capifony/capistrano config
View deploy.rb
# app/config/deploy.rb
# Multistage deploy config.
# require capistrano-ext
# see:
set :stage_dir, 'app/config/deploy'
require 'capistrano/ext/multistage'
You can’t perform that action at this time.