Skip to content

Instantly share code, notes, and snippets.

Shipping code for humans

Gabriel Le Breton GabLeRoux

Shipping code for humans
View GitHub Profile
GabLeRoux /
Created Jul 31, 2019
Convert OPENSSH to RSA from command line

Convert openssh keys to rsa keys

from something that starts with


to something that starts with

GabLeRoux /
Created May 30, 2018 — forked from naholyr/
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.


Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
GabLeRoux /
Last active Sep 5, 2018
Generate a new ssh key and add it to remote server's authorized_keys

1. Generate yourself a new ssh key

# Generate new ssh key (from github)
ssh-keygen -t rsa -b 4096 -C ""
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/EXAMPLE_rsa
GabLeRoux /
Created Mar 22, 2018
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 /
Last active Jan 22, 2018
One of the reasons why I don't like PHP



echo "some undefined variable" + $undefined_shit;
echo "please don't print";
php nope.php

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 /
Last active Jul 17, 2020
Use jupyter to take python notes, share and embed them <3


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

pip3 install jupyter
pip3 install matplotlib numpy pandas
jupyter notebook
gpaste-client --help
  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
You can’t perform that action at this time.