Skip to content

Instantly share code, notes, and snippets.

View oeeckhoutte's full-sized avatar

Olivier Eeckhoutte oeeckhoutte

View GitHub Profile
@oeeckhoutte
oeeckhoutte / zsh.md
Created September 6, 2015 15:59 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@oeeckhoutte
oeeckhoutte / Dockerfile_codebox
Last active September 6, 2015 16:01
Dockerfile to install codebox on port 8080
FROM ubuntu:latest
WORKDIR /workspace
RUN apt-get update && \
apt-get install -y make g++ python git curl && \
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
apt-get install -y nodejs && \
npm -g install node-gyp codebox && \
cd /usr/lib/node_modules/codebox/node_modules/shux/node_modules/pty.js && \
@oeeckhoutte
oeeckhoutte / install_docker.sh
Last active August 29, 2015 14:26
Installer Docker sur une machine Debian 8.1
# Installation sur Debian 8.1:
apt-get update
apt-get install -y curl
curl -sSL https://get.docker.com/ | sh
# Tester si l’installation fonctionne:
docker run -i -t ubuntu /bin/bash
# Vérifier qu’on est bien sur une machine Ubuntu
cat /etc/issue
@oeeckhoutte
oeeckhoutte / gist:2af8aab99ded560c2296
Created May 15, 2015 21:45
Install distcc Cross Compilation
On the Ubuntu Machine
Install dependencies
sudo apt-get install mercurial bison flex texinfo automake curl
sudo apt-get install build-essential libncurses-dev libtool gawk gperf
if you are using a 64bit linux distribution you'll need to install also:
sudo aptitude install ia32-libs
Download the Raspberry Pi compiler for linux
you can download it as a zip or clone the repo at from https://github.com/raspberrypi/tools/
rename the folder to something more identifiable like rpi-tools, we'll refer to this path as $RPI_TOOLS from now on
Install and configure distcc on the Ubuntu Helper machine
@oeeckhoutte
oeeckhoutte / fromOSXMachine
Created April 20, 2015 18:35
Download and setup ArchLinux on RaspberryPi
curl -o arch_arm.img.zip -L http://downloads.raspberrypi.org/arch_latest
unzip arch_arm.img.zip
df -h
#Find your SD Card
sudo diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=ArchLinuxARM-2014.01-rpi.img of=/dev/rdisk2
sudo diskutil eject /dev/rdisk2
@oeeckhoutte
oeeckhoutte / Install Wifi And Docker on my Pi
Created April 20, 2015 17:26
Install Wifi and Docker on ArchLinux
# Install the wireless tools
pacman -Syu
pacman -S wireless_tool
# Setup the configuration
wifi-menu
# Autostart the wifi with
netctl list
netctl enable wlan0-olivier
# intellij javascript live templates
Just a dump of handy live templates I use with **IntelliJ**.
They should also work with **WebStorm**.
## How to
- Go to `settings`.
- Search for `live templates`.
- Under the javascript section you should be able to manage your templates.
@oeeckhoutte
oeeckhoutte / reset_root_password_osx_lion
Last active August 29, 2015 14:16
[OSX][Lion] Reset Root password
All you have to do is turn on your computer holding CMD + S. This will boot your Mac in Single-User Mode. Next, you have to wait a second while kernel will load command-line interface. It there is :/ root# line, you’re ready to go!
OSX Lion
First of all, type
# /sbin/fsck -fy
This will take a while. It will check the consistency of your filesystem. If there is no error, your output should be similar to this:
** /dev/rdisk0s2
** Root file system
@oeeckhoutte
oeeckhoutte / gist:9e30fb554a81cfa9c0eb
Last active August 29, 2015 14:15
[Ubuntu 14,04 Gnome] Setup VNC server
sudo apt-get install tightvncserver
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
vi ~/.vnc/xstartup
----- Enter --
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-window-manager &
@oeeckhoutte
oeeckhoutte / designer.html
Created September 5, 2014 12:17
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<polymer-element name="my-element">