This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmodule kitty-server | |
(export all)) | |
(defrecord cat | |
name | |
(color 'green) | |
description) | |
;; Client API | |
(defun start-link () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
💀 arch-xps λ sudo ./bin/rkt --debug run https://github.com/coreos/etcd/releases/download/v0.5.0-alpha.4/etcd-v0.5.0-alpha.4-linux-amd64.aci (git)-[master][~/go/.../coreos/rocket] | |
2014/12/04 10:52:27 Unpacking stage1 rootfs | |
2014/12/04 10:52:28 Writing stage1 init | |
2014/12/04 10:52:28 Wrote filesystem to /var/lib/rkt/containers/2cf348cd-42a8-4961-8094-effa76e002f9 | |
2014/12/04 10:52:28 Loading image sha256-f9215c18b86f406c7cec4c7b45fd8752b5bfd1a492507d647821c2ce593fbf31 | |
2014/12/04 10:52:28 Writing container manifest | |
2014/12/04 10:52:28 Pivoting to filesystem /var/lib/rkt/containers/2cf348cd-42a8-4961-8094-effa76e002f9 | |
2014/12/04 10:52:28 Execing stage1/init | |
Spawning container stage1 on /var/lib/rkt/containers/2cf348cd-42a8-4961-8094-effa76e002f9/stage1. | |
Press ^] three times within 1s to kill container. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
import Control.Monad | |
import Data.Aeson (FromJSON, ToJSON, decode) | |
import Data.Text (concat, unpack) | |
import Data.Text.Internal (Text) | |
-- import Data.Text.IO (putStrLn) | |
-- import qualified Data.ByteString as B | |
import qualified Data.ByteString.Char8 as BC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Control.Monad | |
import Data.Monoid | |
import Data.UnixTime | |
import Data.Convertible.Base | |
import Database.HDBC | |
import Database.HDBC.Sqlite3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/flosch/pongo2" | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
type pongoRender struct { | |
cache map[string]*pongo2.Template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject megami.clj "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [ | |
[org.clojure/clojure "1.6.0"] | |
[clojure-soup "0.0.1"] | |
[org.clojure/core.async "0.1.303.0-886421-alpha"] | |
[com.taoensso/timbre "3.2.1"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TOKEN=$1 | |
journalctl -o short -f | awk -v token=$TOKEN '{ print token, $0; fflush(); }' | ncat data.logentries.com 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TOOLBOX_DOCKER_IMAGE=$1 | |
TOOLBOX_USER=root | |
machinename=$(echo "${USER}-${TOOLBOX_DOCKER_IMAGE}" | sed -r 's/[^a-zA-Z0-9_.-]/_/g') | |
machinepath="/var/lib/toolbox/${machinename}" | |
if [ ! -d ${machinepath} ] || systemctl is-failed ${machinename} ; then | |
sudo mkdir -p "${machinepath}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@coreos1 ~ $ etcdctl ls --recursive /_coreos.com/fleet/job | |
core@coreos1 ~ $ fleetctl list-units | |
UNIT LOAD ACTIVE SUB DESC MACHINE | |
core@coreos1 ~ $ fleetctl list-units | |
UNIT LOAD ACTIVE SUB DESC MACHINE | |
hello.service loaded active running Hello World 0b0d4b79.../192.168.2.50 | |
core@coreos1 ~ $ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@coreos-local ~ $ ./nspawn-container jmatis/tomcat7 "/opt/start-watch-tomcat.sh" | |
Pulling repository jmatis/tomcat7 | |
b3dfa5e5f738: Download complete | |
511136ea3c5a: Download complete | |
5e66087f3ffe: Download complete | |
4d26dd3ebc1c: Download complete | |
d4010efcfd86: Download complete | |
99ec81b80c55: Download complete | |
c17d434dd941: Download complete | |
180579a76826: Download complete |