Skip to content

Instantly share code, notes, and snippets.

@slopjong
slopjong / the_space_name.json
Created June 2, 2014 18:56
Example showing how to post a gist.
{
"api": "0.13",
"space": "The space name",
"logo": "http://your-space.com/logo.png",
"url": "http://example.com",
"location": {
"address": "see the documentation",
"lon": 5.973817,
"lat": 39.240431
},

Docker

Create: Request

POST /v1.14/containers/create HTTP/1.1
Host: 127.0.0.1:9999
User-Agent: Docker-Client/1.2.0
@slopjong
slopjong / PHPUnit.md
Last active October 3, 2019 12:00
Become DevOp Talk Series
        $mapperMock = $this->getMock('Doctor\Mapper\Calendar');
        $mapperMock
            ->expects($this->once())
            ->method('getDoctorTimeSlots')
            ->will($this->returnValue([]))
        ;

        $translator = $this->getMock('Zend\Translator');
        $translator
<?php
$winners = array(
array(
array(8, 17, 21, 31, 34),
array(9, 10),
),
array(
<html style="background: #184b34">
<script>
window.color = {
red: 0,
green: 0,
blue: 0
};
window.color2 = [0, 0, 0];
window.steps = 0;