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
-[ RECORD 2 ] | |
id | 339336274754076673 | |
type | SCHEMA CHANGE | |
description | ALTER TABLE triton.tsg_groups ADD COLUMN created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), ADD COLUMN updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now() | |
username | root | |
status | succeeded | |
created | 2018-04-13 13:53:32.751835+00:00 | |
started | 2018-04-13 13:53:32.819834+00:00 | |
finished | 2018-04-13 13:58:11.432305+00:00 | |
modified | 2018-04-13 13:58:11.432305+00:00 |
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
// Pool holds Clients. | |
type Pool struct { | |
pool chan *Client | |
} | |
// NewPool creates a new pool of Clients. | |
func NewPool(max int) *Pool { | |
return &Pool{ | |
pool: make(chan *Client, max), | |
} |
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
CREATE TABLE pears (id SERIAL PRIMARY KEY, "name" STRING, apple_id INT REFERENCES apples (id)); | |
INSERT INTO pears (name, apple_id) VALUES ('pear test', (SELECT id FROM apples LIMIT 1)); |
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
CREATE TABLE t1 (id UUID PRIMARY KEY DEFAULT gen_random_uuid(), "name" STRING); | |
CREATE TABLE t2 (id UUID PRIMARY KEY DEFAULT gen_random_uuid(), "name" STRING, t1_id UUID REFERENCES t1 (id)); | |
INSERT INTO t1 (name) VALUES ('bacon'); | |
INSERT INTO t2 (name, t1_id) VALUES ('bacon t2', (SELECT id FROM t1 LIMIT 1)); | |
INSERT INTO t2 (name) VALUES ('facon'); |
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
[vagrant@freebsd-compile /opt/gopath/src/github.com/hashicorp/nomad]$ nomad agent -dev | |
No configuration files loaded | |
==> Starting Nomad agent... | |
==> Error starting agent: client setup failed: fingerprinting failed: cannot allocate memory | |
2018/03/06 18:36:47 [INFO] raft: Initial configuration (index=1): [{Suffrage:Voter ID:127.0.0.1:4647 Address:127.0.0.1:4647}] | |
2018/03/06 18:36:47 [INFO] raft: Node at 127.0.0.1:4647 [Follower] entering Follower state (Leader: "") | |
2018/03/06 18:36:47 [INFO] serf: EventMemberJoin: freebsd-compile.global 127.0.0.1 | |
2018/03/06 18:36:47.913476 [INFO] nomad: starting 2 scheduling worker(s) for [service batch system _core] | |
2018/03/06 18:36:47.915697 [INFO] client: using state directory /tmp/NomadClient122291088 | |
2018/03/06 18:36:47.916533 [INFO] nomad: adding server freebsd-compile.global (Addr: 127.0.0.1:4647) (DC: dc1) |
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
provider "triton" { | |
insecure_skip_tls_verify = true | |
} | |
data "triton_network" "public" { | |
name = "Joyent-SDC-Public" | |
} | |
data "triton_image" "lts" { | |
name = "base-64-lts" |
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 main | |
import ( | |
"fmt" | |
) | |
// Uses Russ Cox's linear search algorithm. | |
func match(name, pattern string) bool { | |
p := 0 | |
n := 0 |
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
[root@ironhide (phl) ~]# ./zfdtrace.d | |
82153854045498 global sched[36118] zsched_entry() | |
82154274220525 2f8fb104 zsched[36207] zone_start_init() | |
82154274239938 2f8fb104 zsched[36207] exec_init(/native/usr/vm/sbin/dockerinit) | |
82154274629344 2f8fb104 dockerinit[36207] exec_init() returned | |
82154275041443 global zoneadmd[36095] read(6[<unnamed>],5120):entry | |
82154278539395 2f8fb104 dockerinit[36207] logging to fd 3 | |
82154280768220 2f8fb104 dockerinit[36207] LOG '2018-01-03T17:29:02.222Z MDATA sdc:brand=lx\n\0' | |
82154280817607 2f8fb104 dockerinit[36207] LOG '2018-01-03T17:29:02.222Z MOUNT /dev/shm (shm)\n\0' | |
82154280971662 2f8fb104 dockerinit[36207] LOG '2018-01-03T17:29:02.223Z REPLACE /etc/mtab\n\0' |
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
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<Name>books</Name> | |
<Prefix>testminio</Prefix> | |
<Marker /> | |
<MaxKeys>1000</MaxKeys> | |
<Delimiter>/</Delimiter> | |
<IsTruncated>false</IsTruncated> | |
<Contents> | |
<Key>Makefile</Key> | |
<LastModified>2017-12-13T16:15:41.283Z</LastModified> |
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
// RemoveAll removes path and any children it contains. | |
// It removes everything it can but returns the first error | |
// it encounters. If the path does not exist, RemoveAll | |
// returns nil (no error). | |
func RemoveAll(path string) error { | |
// Simple case: if Remove works, we're done. | |
err := Remove(path) | |
if err == nil || IsNotExist(err) { | |
return nil |