Skip to content

Instantly share code, notes, and snippets.

View thierrymarianne's full-sized avatar

Th. Ma. thierrymarianne

  • Greater Paris Metropolitan Area
View GitHub Profile
@mattray
mattray / gist:f5141f3f6cb0be4cfc5d
Created May 14, 2014 13:07
OpenStack Atlanta Chef Workshop Instructions

Welcome to the OpenStack Deployment with Chef Workshop. These instructions are tailored to provide the minimal configuration for doing the walk-through. There is an expectation of Chef familiarity, but the steps are the same used in the presentation.

User shell commands will start with '$' or '#' for the 'root' user on the Virtualbox image.

1. Install Virtualbox. We are currently using 4.3.10. You may download it from https://Virtualbox.com

2. Install Vagrant. We are currently using 1.4.3. You may download it from https://downloads.vagrantup.com

3. Install the Chef Development Kit. We are currently using 0.1.0. You may download it from https://www.getchef.com/downloads/chef-dk/

#!/usr/bin/env bash
source ~/venv/bin/activate
deis register http://local.deisapp.com:8000 --username=bacongobbler --email=mmm@bacon.com --password=qwerty
deis login http://local.deisapp.com:8000 --username=bacongobbler --password=qwerty
deis keys:add ~/.ssh/id_rsa.pub
deis init dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
@chmouel
chmouel / docker-hot-template.yaml
Last active January 4, 2022 22:50
A heat template that use docker to create containers for a wordpress install. You need to configure the plugin first in /etc/heat/heat.conf (see the README) and pull the images (i.e: docker pull samalba/wordpress samalba/mysql)
heat_template_version: 2013-05-23
description: >
Docker example template, you need to docker pull samalba/wordpress and samalba/mysql first.
resources:
wordpress:
type: DockerInc::Docker::Container
properties:
image: samalba/wordpress
There are a lot of complaints going around about Laravel these days, but a lot
of the important ones seem to be missing from the spotlight.
Bugfixes, issues and pull requests being left open for months with no
clarification of intent:
- https://github.com/laravel/framework/pull/1799
- https://github.com/laravel/framework/issues/1963
- https://github.com/laravel/framework/issues/2089
- https://github.com/laravel/framework/issues/2234
anonymous
anonymous / gist:8565929
Created January 22, 2014 19:42
There are a lot of complaints going around about Laravel these days, but a lot
of the important ones seem to be missing from the spotlight.
Bugfixes, issues and pull requests being left open for months with no
clarification of intent:
- https://github.com/laravel/framework/pull/1799
- https://github.com/laravel/framework/issues/1963
- https://github.com/laravel/framework/issues/2089
- https://github.com/laravel/framework/issues/2234
@dergachev
dergachev / squid-deb-proxy_on_docker.md
Last active May 25, 2023 03:55
Caching debian package installation with docker

TLDR: I now add the following snippet to all my Dockerfiles:

# If host is running squid-deb-proxy on port 8000, populate /etc/apt/apt.conf.d/30proxy
# By default, squid-deb-proxy 403s unknown sources, so apt shouldn't proxy ppa.launchpad.net
RUN route -n | awk '/^0.0.0.0/ {print $2}' > /tmp/host_ip.txt
RUN echo "HEAD /" | nc `cat /tmp/host_ip.txt` 8000 | grep squid-deb-proxy \
  && (echo "Acquire::http::Proxy \"http://$(cat /tmp/host_ip.txt):8000\";" > /etc/apt/apt.conf.d/30proxy) \
  && (echo "Acquire::http::Proxy::ppa.launchpad.net DIRECT;" >> /etc/apt/apt.conf.d/30proxy) \
  || echo "No squid-deb-proxy detected on docker host"
@jmikola
jmikola / make_php.sh
Last active January 4, 2022 22:50
Build scripts for multiple PHP versions
make_php () {
# Directory for PHP git repo (for git-new-workdir)
phpsrcdir="/home/jmikola/workspace/php/php-src"
# Git branch for this build (for git-new-workdir)
phpbranch="PHP-$1"
# Where compiled builds should be installed
installdir="/home/jmikola/bin/php"
@ComFreek
ComFreek / Error log.txt
Last active January 1, 2016 00:59
Vagrant / PuPHPet error log: Could not find a suitable provider for mysql_user
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'debian-wheezy72-x64-vbox43'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
@pfigue
pfigue / timezone.pp
Last active September 6, 2016 02:56
Puppet Manifest to set the timezone in the system.
file { '/etc/timezone':
ensure => present,
content => "Europe/Berlin\n",
}
exec { 'reconfigure-tzdata':
user => root,
group => root,
command => '/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata',
}
@rxaviers
rxaviers / gist:7360908
Last active May 2, 2024 09:30
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: