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
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
@GabLeRoux
GabLeRoux / env-to-json.py
Last active September 10, 2023 00:45
.env file to json using simple python
#!/usr/bin/env python
import json
import sys
try:
dotenv = sys.argv[1]
except IndexError as e:
dotenv = '.env'
with open(dotenv, 'r') as f:
@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 / how-to-jupyter.md
Last active July 17, 2020 19:51
Use jupyter to take python notes, share and embed them <3

Installation

You'll need jupyter and some tools to draw plots :)

pip3 install jupyter
pip3 install matplotlib numpy pandas
jupyter notebook
@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