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
package uk.drkr.fpinscala.chapter3 | |
import scala.annotation.tailrec | |
sealed trait List[+A] | |
case object Nil extends List[Nothing] | |
case class Cons[+A](head: A, tail: List[A]) extends List[A] | |
object List { | |
def apply[A](as: A*): List[A] = |
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
$update_channel="stable" | |
#$controller_count=1 | |
#$controller_vm_memory=512 | |
$worker_count=2 | |
$worker_vm_memory=2048 | |
#$etcd_count=1 | |
#$etcd_vm_memory=512 |
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
#!/usr/bin/env ruby | |
# | |
# Pull basic hardware info from system profiler and copy to clipboard | |
# | |
require 'open3' | |
hardware = { | |
model_identifer: 'Model Identifier', | |
model_name: 'Model Name', | |
sys_serial: 'Serial Number \(system\)', |
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
* aws_security_group_rule.allow_all_outbound: [WARN] A duplicate Security Group rule was found. This may be | |
a side effect of a now-fixed Terraform issue causing two security groups with | |
identical attributes but different source_security_group_ids to overwrite each | |
other in the state. See https://github.com/hashicorp/terraform/pull/2376 for more | |
information and instructions for recovery. Error message: the specified rule "peer: 0.0.0.0/0, ALL, ALLOW" already exists | |
Terraform does not automatically rollback in the face of errors. | |
Instead, your Terraform state file has been partially updated with | |
any resources that successfully completed. Please address the error | |
above and apply again to incrementally change your infrastructure. |
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
resource "aws_security_group_rule" "allow_all_outbound" { | |
type = "egress" | |
from_port = 0 | |
to_port = 0 | |
protocol = "-1" | |
cidr_blocks = ["0.0.0.0/0"] | |
security_group_id = "${aws_security_group.app_name.id}" | |
} |
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
$ journalctl -t fleetd -n --no-pager | |
-- Logs begin at Tue 2015-11-03 07:55:37 UTC, end at Thu 2015-11-19 11:55:03 UTC. -- | |
Nov 19 11:16:29 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO fleet.go:160: No provided or default config file found - proceeding without | |
Nov 19 11:16:30 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO server.go:152: Establishing etcd connectivity | |
Nov 19 11:16:30 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO server.go:163: Starting server components | |
Nov 19 11:16:31 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO engine.go:79: Engine leader is 08cef7b78aa14d96b2c9d76412f1b521 | |
Nov 19 11:16:31 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO manager.go:246: Writing systemd unit enable-update-engine.service (296b) | |
Nov 19 11:16:31 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: INFO manager.go:182: Instructing systemd to reload units | |
Nov 19 11:16:31 ip-172-16-16-148.eu-west-1.compute.internal fleetd[1543]: I |
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
[Unit] | |
Description=Etcd Backup Ruby %i | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=300 | |
EnvironmentFile=/etc/environment | |
EnvironmentFile=/etc/custom_environment | |
ExecStartPre=-/usr/bin/docker kill %p-%i |
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
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet:service() uri = /ca/agent/ca/displayBySerial | |
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet::service() param name='xml' value='true' | |
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet::service() param name='serialNumber' value='16' | |
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet: caDisplayBySerial start to service. | |
[16/Jul/2015:08:58:22][TP-Processor5]: IP: 10.33.213.102 | |
[16/Jul/2015:08:58:22][TP-Processor5]: AuthMgrName: certUserDBAuthMgr | |
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet: retrieving SSL certificate | |
[16/Jul/2015:08:58:22][TP-Processor5]: CMSServlet: certUID=CN=IPA RA,O=PROD.EXAMPLE.NET | |
[16/Jul/2015:08:58:22][TP-Processor5]: CertUserDBAuth: started | |
[16/Jul/2015:08:58:22][TP-Processor5]: CertUserDBAuth: Retrieving client certificate |
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
-- Logs begin at Wed 2015-06-10 14:03:02 , end at Wed 2015-06-10 14:12:52 . -- | |
Jun 10 14:03:30 ip-123-123-123-105.eu-west-1.compute.internal systemd[1]: Started etcd2. | |
Jun 10 14:03:30 ip-123-123-123-105.eu-west-1.compute.internal systemd[1]: Starting etcd2... | |
Jun 10 14:03:36 ip-123-123-123-105.eu-west-1.compute.internal etcd2[598]: 2015/06/10 14:03:36 etcd: peerTLS: cert = /etc/ssl/etcd/certs/cont-cros-uact-001.crt, key = /etc/ssl/etcd/private/cont-cros-uact-001.key, ca = /etc/ssl/etcd/certs/etcd-ca.crt | |
Jun 10 14:03:39 ip-123-123-123-105.eu-west-1.compute.internal etcd2[598]: 2015/06/10 14:03:39 etcd: listening for peers on https://123.123.123.105:2380 | |
Jun 10 14:03:39 ip-123-123-123-105.eu-west-1.compute.internal etcd2[598]: 2015/06/10 14:03:39 etcd: clientTLS: cert = /etc/ssl/etcd/certs/cont-cros-uact-001.crt, key = /etc/ssl/etcd/private/cont-cros-uact-001.key, ca = /etc/ssl/etcd/certs/etcd-ca.crt | |
Jun 10 14:03:42 ip-123-123-123-105.eu-west-1.compute.internal etcd2[598]: 2015/06/10 14:03:42 etcd: listening fo |
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
[Unit] | |
Description=Docker Registry | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
EnvironmentFile=/etc/profile.d/etcdctl.sh | |
ExecStartPre=-/usr/bin/docker kill docker-registry | |
ExecStartPre=-/usr/bin/docker rm docker-registry |
NewerOlder