Skip to content

Instantly share code, notes, and snippets.

View GabLeRoux's full-sized avatar
:shipit:
Shipping code for humans ✌

Gabriel Le Breton GabLeRoux

:shipit:
Shipping code for humans ✌
View GitHub Profile
@GabLeRoux
GabLeRoux / extract-testflight.js
Created November 1, 2016 15:23 — forked from creaoy/extract-testflight.js
Extract TestFlight user email addresses from iTunes Connect
//Make sure you scroll down to get all data loaded
var text = '';
$('.col-email').each(function(index,el) {
if (index == 0) {
text = 'Email, First Name, Last Name\n';
}
else {
//Email
text = text + $.trim($(el).find("a").text()) + ',';
//First Name
@GabLeRoux
GabLeRoux / unitySizeAnalyzer.sh
Created November 5, 2016 00:22 — forked from elaberge/unitySizeAnalyzer.sh
Unity App Size Analyzer
#!/usr/bin/env bash
function dumpBundle {
FILE=$1
OUTDIR=$2
LZMADIR=$3
OUTPATH="$OUTDIR/$FILE"
LZMAPATH="$LZMADIR/$FILE"
mkdir -p $(dirname "$OUTPATH")
@GabLeRoux
GabLeRoux / troubleshooting.md
Last active January 18, 2017 22:33
Unable to upgrade from v2016.3.3 to v2016.11.1 on debian 8.7
@GabLeRoux
GabLeRoux / gpaste-client-help.md
Created January 31, 2017 14:05
gpaste-client --help
gpaste-client --help
Usage:
  gpaste-client [history]: print the history with indexes
  gpaste-client history-size: print the size of the history
  gpaste-client get-history: get the name of the current history
  gpaste-client backup-history <name>: backup current history
@GabLeRoux
GabLeRoux / Rails-add-user-in-rails-console.md
Last active November 4, 2017 19:05 — forked from tacettin/Rails add user in rails console
Rails add user in rails console

This is quite a 'classic' problem and the immediate thought ("just do it mySQL") doesn't work here because of the need to have the rails piece that encodes a password that is entered.

So you need to actually use rails, something like this (this should all be happening in your local development environment which is the default when working locally):

You need to create a user.

Try this:

cd the_root_of_the_project
@GabLeRoux
GabLeRoux / why-i-hate-php.md
Last active January 22, 2018 05:53
One of the reasons why I don't like PHP

nope.php:

<?php

echo "some undefined variable" + $undefined_shit;
echo "please don't print";
php nope.php
@GabLeRoux
GabLeRoux / aws-attach-AWSElasticBeanstalkMulticontainerDocker-to-elasticbeanstalk.sh
Created March 22, 2018 15:14
Attach AWSElasticBeanstalkMulticontainerDocker to elasticbeanstalk's aws-elasticbeanstalk-service-role from command line
# example using profile in ~/.aws/config
aws --profile some-profile-name \
iam attach-role-policy \
policy-arn arn:aws:iam::aws:policy/AWSElasticBeanstalkMulticontainerDocker \
--role-name aws-elasticbeanstalk-service-role
@GabLeRoux
GabLeRoux / problem.log
Last active March 25, 2018 23:27
VirtualBox is configured with multiple host-only adapters with the same IP "192.168.99.1"
Docker Machine Version: 0.7.0, build HEAD
Found binary path at /usr/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:43433
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
command=start machine=default
Starting "default"...
@GabLeRoux
GabLeRoux / _service.md
Created May 30, 2018 20:13 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)