Skip to content

Instantly share code, notes, and snippets.

View molivier's full-sized avatar

Matthieu OLIVIER molivier

View GitHub Profile
@molivier
molivier / gist:271bba5d67de1583a8e3
Last active June 28, 2024 22:38
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
@molivier
molivier / wikipedia-fr-extractor.sh
Last active December 30, 2015 16:07
Wikipedia Extractor
# https://github.com/attardi/wikiextractor
# Download latest wikipedia dump
wget http://download.wikimedia.org/frwiki/latest/frwiki-latest-pages-articles.xml.bz2
# Extract and compress articles
python WikiExtractor.py -b 250K -o extracted frwiki-latest-pages-articles.xml.bz2
# Build single file extraction
find extracted -name 'wiki*' -exec cat {} \; > text.xml
rm -rf extracted
@molivier
molivier / docker.sh
Last active January 7, 2016 10:55
Docker Install - Ubuntu 14.04
#!/bin/sh
# Docker Install - Ubuntu 14.04
# wget https://gist.github.com/molivier/e6ebde37f3405618ea7a/raw/aa3b3369b9862853b4a0784bebc5e0a03fd3e717/docker.sh
# chmod +x docker.sh && sh docker.sh
# Universal Control Panel
UCP=true
# Install Docker repository (as root)
@molivier
molivier / docker-registry.sh
Created January 7, 2016 14:15
Install Docker Trusted Registry
#!/bin/sh
# Install Docker Trusted Registry
# Source: https://docs.docker.com/docker-trusted-registry/install/install-csengine/
# Docker CS Engine
wget -qO- 'https://pgp.mit.edu/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | sudo apt-key add --import
sudo apt-get update && sudo apt-get install apt-transport-https
sudo apt-get install -y linux-image-extra-virtual
echo "deb https://packages.docker.com/1.9/apt/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
@molivier
molivier / kong.sh
Last active January 12, 2016 16:53
Install Kong Proxy
#!/bin/sh
# Kong API Proxy: https://getkong.org
# https://blog.martinfjordvald.com/2013/02/websockets-in-nginx/
# WebSockets : proxy_read_timeout 3600s;
CASSANDRA_VERSION="2.1.12"
KONG_VERSION="trusty_all.deb"
# Install Java 7
@molivier
molivier / clean_docker.sh
Created January 22, 2016 14:51
Stop and Remove all docker containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Keybase proof

I hereby claim:

  • I am molivier on github.
  • I am molivier (https://keybase.io/molivier) on keybase.
  • I have a public key whose fingerprint is 41B7 7501 8C52 08BD 34A1 70FD 46DF 0BAF CFC3 06B3

To claim this, I am signing this object:

@molivier
molivier / install-docker.sh
Last active March 1, 2018 20:05
Install Docker Ubuntu 16.04 LTS
#!/usr/bin/env bash
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-engine
service docker start
docker version
@molivier
molivier / gist:a663eb73a87894e05ecfd39d5f50f0c5
Last active March 17, 2017 08:12
Docker install - Debian Jessie - Openstack
#!/usr/bin/env bash
# Install packages to allow apt to use a repository over HTTPS
apt install -y apt-transport-https ca-certificates curl software-properties-common
# Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# Add Docker Repository
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"