Skip to content

Instantly share code, notes, and snippets.

View deitch's full-sized avatar

Avi Deitcher deitch

View GitHub Profile
@deitch
deitch / main.go
Last active April 23, 2019 07:40
package main
import (
"fmt"
"os"
"github.com/packethost/packngo"
)
func main() {
apiKey := os.Getenv("PACKET_API_KEY")
$ TF_LOG=TRACE tf init .
2019/04/09 21:26:49 [INFO] Terraform version: 0.11.13
2019/04/09 21:26:49 [INFO] Go runtime version: go1.12
2019/04/09 21:26:49 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.13/bin/terraform", "init", "."}
2019/04/09 21:26:49 [DEBUG] Attempting to open CLI config file: /Users/adeitcher/.terraformrc
2019/04/09 21:26:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/04/09 21:26:49 [INFO] CLI command args: []string{"init", "."}
2019/04/09 21:26:49 [DEBUG] command: loading backend config file: /tmp/backend-test
Initializing the backend...
package main
import (
"bytes"
"io"
"log"
"os"
"os/exec"
)
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 console=tty0 page_poison=1"
init:
- deitch/linuxkit-init:nogetty
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
onboot:
- name: sysctl
@deitch
deitch / config.txt
Created October 8, 2016 17:07
LinuxCon-Berlin-2016-Networking-Containers-Ultra-Low-Latency-Data
Linux source1 3.10.0-327.36.1.el7.x86_64 #1 SMP Sun Sep 18 13:04:29 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.2.1511 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
/*globals jQuery, define, module, exports, require, window, document, postMessage */
(function (factory) {
"use strict";
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
}
else if(typeof module !== 'undefined' && module.exports) {
module.exports = factory(require('jquery'));
}
else {
[root@source1 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@source1 ~]# docker network ls
NETWORK ID NAME DRIVER
14a1d4846055 bridge bridge
bb1d7812d0b3 docker_gwbridge bridge
438bc0b14dc7 host host
32a836950537 none null
1,3d0
< archelp
< bitmap
< bitmap_scale
5d1
< btrfs
7,8d2
< cat
< configfile
10,11d3
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-22-generic (buildd@lgw01-41) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #40-Ubuntu SMO Thu May 12 22:03:46 UTC 2016 (Ubuntu 4.4.0-22.40-generic 4.4.8)
[ 0.000000] Command line:
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentraurHauls
[ 0.000000] x86/fpu: Legacy x87 FPU detected.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-22-generic (buildd@lgw01-41) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #40-Ubuntu SMO Thu May 12 22:03:46 UTC 2016 (Ubuntu 4.4.0-22.40-generic 4.4.8)
[ 0.000000] Command line:
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentraurHauls
[ 0.000000] x86/fpu: Legacy x87 FPU detected.