Skip to content

Instantly share code, notes, and snippets.

View mykiwi's full-sized avatar
🥝
$ docker buildx bake future

Romain Gautier mykiwi

🥝
$ docker buildx bake future
View GitHub Profile
@alexandresalome
alexandresalome / README
Created February 5, 2014 14:19
PHP - Getters and Setters for SublimeText
This SublimeText macro will generate your PHP getters and setters automatically.
Just create a list of attributes you want to generate getters and setters for:
class User
{
firstname
lastname
}
run:
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg
$tab-border-color: $tabs-navigation-bg-color;
dl.tabs {
border-bottom: 1px solid $tab-border-color;
dd {
position: relative;
bottom: -1px;
border-top: 1px solid $tab-border-color;
border-left: 1px solid $tab-border-color;
border-right: 1px solid $tab-border-color;
@chanmix51
chanmix51 / create_pomm2_silex.sh
Last active August 29, 2015 14:11
Pomm2 Silex project creation script
#!/bin/bash
echo "Project setup";
echo -n "What is your project name ['Test']:> ";
read project_name;
echo "Postgresql setup";
echo -n "What is your Postgresql username [$USER]:> ";
read db_username;
echo -n "What is this user's password (empty if none) [] :> ";
read db_password;
@MathRobin
MathRobin / Dependencies
Created December 12, 2014 15:05
Angular sous IE7
Ca nécessite à minima :
html5shiv : https://github.com/aFarkas/html5shiv
base64 : https://code.google.com/p/stringencoders/source/browse/trunk/javascript/base64.js?r=230
JSON 2 : https://github.com/douglascrockford/JSON-js/blob/master/json2.js
Respond : https://github.com/scottjehl/Respond
Polyfills de toutes les méthodes de Array, Object, String, telles que (non exhaustif) :
- Object.keys https://github.com/MathRobin/object.keys
- Object.create https://github.com/MathRobin/object.create
@jubianchi
jubianchi / php-brew.sh
Last active August 29, 2015 14:11
./php-brew.sh help
#!/bin/bash
if [[ "$1" = "-h" || "$1" = "--help" || $1 = "help" || $1 = "man" ]]
then
echo "A tiny script to run a command against PHP 5.3, 5.4, 5.5 and 5.6 using homebrew"
echo
echo -e "\033[34mUsage:\033[0m"
echo -e "\033[34m------\033[0m"
echo -e " \033[32m$0\033[0m \033[33m<command>\033[0m"
echo

#cargo, docker hub without docker, how to

18 Jan 2015

###Background

I have been using linux containers for almost 2 years now. It started during an internship at Applidget, a startup in Paris. My job was to integrate linux containers technology in their private PaaS. At this time, there where no doubt, the technology to use was LXC. One week or so after I started digging into LXC, one of my co-worker talked to me about this new thing called docker. He told me "isn't it what you are supposed to do during your internship ?". And it was kind of it.

At this time I already highlighted a big challenge of containers in PaaS: creation time. Waiting for bundle install to complete is already long enough to have to wait for another 40 secondes to create a container :). Docker landed just in time !

@mRoca
mRoca / 1-docker-gitlab.md
Last active August 29, 2015 14:21
Gitlab docker

Gitlab image and doc : https://github.com/sameersbn/docker-gitlab

Install

Create containers

mkdir -p /srv/docker/images/gitlab/
cat docker-compose.yml > /srv/docker/images/gitlab/docker-compose.yml
# Edit the docker-compose.yml file
@nicolas-grekas
nicolas-grekas / README.md
Last active January 4, 2016 05:49
Playing Patchwork CLI Color Dumper

Playing with Patchwork CLI color dumper

git clone https://gist.github.com/8578209.git try-patchwork-dumper
cd try-patchwork-dumper
composer install
php test-cli.php
@noprompt
noprompt / word-re.txt
Last active May 2, 2016 15:30
Regular expression for matching any word in `/usr/share/dict/words`.
This file has been truncated, but you can view the full file.
(?:s(?:(?:u(?:b(?:(?:s(?:t(?:a(?:n(?:t(?:i(?:a(?:l(?:(?:i(?:s[mt]|a|ty|ze)|ly|ness))?|t(?:i(?:on|ve)|e|or)|bility)|v(?:e(?:(?:ly|ness))?|al(?:ly)?|i(?:ty|ze))|fy|ous|ze))?|c(?:e(?:less)?|h)|dard(?:ize)?)|lagmit(?:e|ic)|ge|tion)|r(?:a(?:t(?:o(?:s(?:pher(?:e|ic)|e)|r)|i(?:ve)?|al|e|um)|ct(?:ion)?)|uct(?:(?:ion(?:al)?|ur(?:al|e)))?|iate)|itu(?:t(?:i(?:on(?:a(?:l(?:ly)?|ry))?|ng(?:ly)?|ve(?:ly)?)|e(?:[dr])?|able)|ent)|o(?:r(?:eroom|y)|ck)|yl(?:ar|e)|ernal)|e(?:[ta]|r(?:v(?:i(?:en(?:t(?:(?:ly|ness))?|c[ey])|ate)|e)|o(?:sa|us)|ies|rate)|c(?:u(?:t(?:e|ive)|rity)|retar(?:ial|y)|t(?:ion)?|ive)|quen(?:t(?:(?:ial(?:ly)?|ly|ness))?|c[ey])|ns(?:u(?:al|ous)|ation|ible)|pt(?:uple)?|mi(?:fusa|tone)|xtuple|wer|ssile|gment)|i(?:d(?:i(?:ar(?:i(?:e|ly|ness)|y)|z(?:a(?:ble|tion)|e(?:r)?)|ng|st)|e(?:(?:n(?:c[ey]|t)|r))?|y)|st(?:(?:en(?:c[ey]|t(?:ial)?)|ingly))?|l(?:ic(?:ate|ic)|l)|m(?:i(?:lation|ous)|ple)|zar(?:ship)?|nuous)|c(?:ri(?:pt(?:(?:i(?:on(?:ist)?|ve(?:ly)?)|ure))?|b(?:e(?:r(?:ship)?)?|able)|ve(?:r)?)|apular(?:(?:is|y))?|