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 / install-xcode-commandline-tools.sh
Last active August 29, 2015 14:16
Install xcode command line tools The file "/usr/include/iconv.h" is missing in your build environment? run this
xcode-select --install

Keybase proof

I hereby claim:

  • I am gableroux on github.
  • I am gableroux (https://keybase.io/gableroux) on keybase.
  • I have a public key whose fingerprint is D744 0388 1AD9 3AD6 7135 21A0 0A97 5F6A 4C26 A7EF

To claim this, I am signing this object:

@GabLeRoux
GabLeRoux / .editor
Created September 30, 2015 16:32
Atom split selection into lines (Sublime Text's ctrl+shift+l) From https://discuss.atom.io/t/multiple-selections/755/45
'.platform-win32 .editor, .platform-linux .editor':
'ctrl-shift-L': 'editor:split-selections-into-lines'
'ctrl-shift-up': 'editor:add-selection-above'
'ctrl-shift-down': 'editor:add-selection-below'
@GabLeRoux
GabLeRoux / couchdb
Last active March 16, 2016 20:36
Couchdb 1.6.1 Ubuntu 14.04 init script that goes in /etc/init.d Generated using https://github.com/pixelpark/ppnet/wiki/Install-CouchDB-1.6.1-on-Ubuntu-14.04
#!/bin/sh -e
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@GabLeRoux
GabLeRoux / archlinux-virtualbox.sh
Last active November 27, 2023 12:22
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
@GabLeRoux
GabLeRoux / virtualbox-android-two-network.sh
Last active March 10, 2016 20:49
Get two network devices on android virtual image [wip]
# Get android vm image from
# http://www.osboxes.org/android-x86/
# 1. Go to box preferences
# add second card (first one should be nat)
# 2. Start android vm
# 3. Google "android terminal emulator"
# grab the one on the second crappy website (not play store)
# Make sure you allo install from unknown source... :(
@GabLeRoux
GabLeRoux / fix-ssl-cert-snakeoil.key-ubuntu-postgresql.sh
Created April 1, 2016 06:39
Fix postgresql error FATAL: could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with
gpasswd -a postgres ssl-cert
# Fixed ownership and mode
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key
# now postgresql starts! (and install command doesn't fail anymore)
sudo /etc/init.d/postgresql start
@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 / 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")