Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthieu OLIVIER molivier

View GitHub Profile
@molivier
molivier / gist:a663eb73a87894e05ecfd39d5f50f0c5
Last active Mar 17, 2017
Docker install - Debian Jessie - Openstack
View gist:a663eb73a87894e05ecfd39d5f50f0c5
#!/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"
@molivier
molivier / install-docker.sh
Last active Mar 1, 2018
Install Docker Ubuntu 16.04 LTS
View install-docker.sh
#!/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
View keybase.md

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 / clean_docker.sh
Created Jan 22, 2016
Stop and Remove all docker containers
View clean_docker.sh
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@molivier
molivier / kong.sh
Last active Jan 12, 2016
Install Kong Proxy
View kong.sh
#!/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 / docker-registry.sh
Created Jan 7, 2016
Install Docker Trusted Registry
View docker-registry.sh
#!/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 / docker.sh
Last active Jan 7, 2016
Docker Install - Ubuntu 14.04
View docker.sh
#!/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)
View wikipedia-fr-extractor.sh
# 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 / gist:271bba5d67de1583a8e3
Last active Jan 6, 2021
Set $GOPATH on Mac OSX : bash_profile
View gist:271bba5d67de1583a8e3
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile