- run
sudo apt-get install squashfs-tools kexec-tools
- copy "update.sh" to
/usr/sbin/update-coreos
, and make it executable - copy "create-docker-store.sh" to
/usr/sbin/create-coreos-docker-store
, and make it executable - copy "cloud-config.yml" to
/etc/default/coreos
, modifying it to suit your preferences - run
sudo update-coreos -d
- reboot
This file contains 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 | |
if ! which wget > /dev/null; then | |
yum install -y wget | |
fi | |
export DOCKER_VERSION=1.3.0 | |
pushd /tmp | |
if [ ! -f /usr/bin/docker ]; then |
This file contains 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
Instructions for trying ext4+overlay with docker! In an up-to-date SDK: | |
Write the following to /build/amd64-usr/etc/portage/package.keywords/overlay | |
sys-kernel/coreos-sources | |
sys-kernel/coreos-kernel | |
sys-fs/btrfs-progs | |
app-emulation/docker | |
In src/scripts make the following change to switch to ext4: |
This file contains 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
import scala.xml._ | |
val scalaVersion = args.headOption | |
def quote(s: String) = "\"" + s + "\"" | |
val xml = XML.loadString(scala.io.Source.stdin.getLines.mkString("\n")) | |
val name = (xml \ "artifactId").text |
This file contains 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
from __future__ import division | |
import numpy | |
from uuid import uuid1 | |
class d3object: | |
def __init__(self, | |
height=100, | |
width=100, | |
topHtml='', | |
bottomHtml='', | |
style=None, |
This file contains 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
server { | |
listen 443 ssl; | |
server_name hostname; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl_certs/hostname.bndl.crt; | |
ssl_certificate_key /etc/nginx/ssl_certs/hostname.key; | |
ssl_session_timeout 5m; |
This file contains 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
#cloud-config | |
write_files: | |
- path: /home/core/journal2logentries.sh | |
permissions: '0744' | |
owner: root:root | |
content: | | |
#!/usr/bin/env bash | |
# CoreOS on Google Compute Engine: push systemd journal logs to logentries.com | |
# get your private token from logentries.com, see https://logentries.com/doc/input-token |
This file contains 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
import tensorflow as tf | |
batch_size = 2 | |
get_single_xy_timeout = 10 | |
train_timeout = 3 | |
n_epochs = 5 | |
n_threads = 5 | |
# dummy function simulating loading, preprocessing | |
# and other operations needed for the X and Y |
This file contains 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
""" | |
This is a script to help James find a global entry appointment before September because | |
the whole tsa global entry thing is fucked. | |
To use: | |
sudo pip install scrapy | |
scrapy runspider global_entry_scrapper.py | |
To set up automated email notifications: |
This file contains 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
#cloud-config | |
hostname: coreos-01 | |
coreos: | |
etcd: | |
#discovery: https://discovery.etcd.io/xxxxxxxxxxxxxxxx | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: |
OlderNewer