This is a very simplified and hypothetical example of a continuous integration / delivery system.
- Apache Mesos cluster configured with a master/slave setup.
- Marathon Mesosphere's Marathon framework running on Apache Mesos.
### Keybase proof | |
I hereby claim: | |
* I am kevinschoon on github. | |
* I am kevinschoon (https://keybase.io/kevinschoon) on keybase. | |
* I have a public key ASBAoAt5MndM6xvjPJlKn7zt20wURtpeyDdxc9tEch4Xigo | |
To claim this, I am signing this object: |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"math/rand" | |
"strings" | |
"time" | |
) |
/* | |
Demonstration of concurrency using Go routines with shared lock plus error and signal handling. | |
*/ | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"math/rand" | |
"os" |
import sys | |
def recurse(count=0): | |
count += 1 | |
if count + 2 < sys.getrecursionlimit(): | |
recurse(count) | |
else: | |
answer = raw_input("YOU HAVE REACHED {} DO YOU DARE TO CONTINUE?! [yes/no/whatev]: ".format(count)) | |
if answer == "yes": |
filter { | |
if [type] == "cloudfront" { | |
csv { | |
separator => " " | |
columns => [ "date", "time", "x-edge-location", "sc-bytes", "c-ip", "cs-method", "Host", "cs-uri-stem", "sc-status", "Referer", "User-Agent", "cs-uri-query", "Cookie", "x-edge-result-type", "x-edge-request-id", "x-host-header", "cs-protocol", "cs-bytes" ] | |
add_field => [ "listener_timestamp", "%{date} %{time}" ] | |
} | |
date { | |
type => "cloudfront" |
// log an object to the browser console | |
console.log({ text: "foobar" }); |
package main | |
import ( | |
"fmt" | |
"time" | |
"math/rand" | |
"bytes" | |
"gopkg.in/robfig/cron.v2" | |
) |
class FileObject: | |
def __init__(name, **kwargs): | |
self.name = name | |
def get_metadata(path): | |
resp = client.metadata(path) | |
for f in resp['contents']: | |
if f['is_file']: | |
yield FileObject(**f) | |
else: |
#!/usr/bin/env python | |
""" | |
Convert YAML to JSON and JSON to YAML | |
""" | |
import yaml | |
import json | |
import sys | |