Skip to content

Instantly share code, notes, and snippets.

View Remiii's full-sized avatar
👨‍💻
remibarbe.fr

Rémi Barbe Remiii

👨‍💻
remibarbe.fr
View GitHub Profile
@Remiii
Remiii / README.md
Last active August 28, 2015 13:59
Hubot MamaCake (Paris 18e)
@Remiii
Remiii / reset-DNS-cache.md
Created February 7, 2014 13:13
How to reset the DNS cache

How to reset the DNS cache

How to reset the DNS cache on OSX

$ sudo dscacheutil -flushcache
@Remiii
Remiii / BlogPostBoot2docker1.md
Last active August 29, 2015 13:56
BlogPost Boot2docker 1
$ brew update
$ brew install boot2docker
$ boot2docker init
$ boot2docker up
$ boot2docker ssh
$ > user: docker
$ > pass: tcuser
@Remiii
Remiii / .htaccess
Created February 17, 2014 11:14
.htaccess redirect all pages to new domain
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
############################################################
# Dockerfile to build JekyllApp container images
# Based on Ubuntu
# Author Remi Barbe (aka Remiii)
############################################################
# Set the base image to Ubuntu
FROM ubuntu:12.04
# File Author / Maintainer
[supervisord]
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
[program:jekyll]
directory=/home/website/documents/website/myWebsite1
command=jekyll serve
stdout_logfile=/var/log/supervisor/%(program_name)s.log
$ cd ubuntu-jekyll
$ docker build -t ubuntu-jekyll --rm=true ./
$ docker images -a
$ docker rmi idOfImage
$ docker run -p 20022:22 -p 24000:4000 -i -t ubuntu-jekyll