Skip to content

Instantly share code, notes, and snippets.

View jasonkuhrt's full-sized avatar
🏔️
Building Prisma Cloud

Jason Kuhrt jasonkuhrt

🏔️
Building Prisma Cloud
View GitHub Profile
@jasonkuhrt
jasonkuhrt / index.js
Last active August 29, 2015 13:57
Inspecting net.Socket instance properties as related to connection state
'use strict';
var tcp = require('net');
var s1 = tcp.createServer().listen(9000);
var s2 = tcp.createServer().listen(9001);
var s3 = tcp.createServer().listen(9002);
-e 'a=1' -e 'b=2' -e 'c=3'
@jasonkuhrt
jasonkuhrt / Vagrantfile
Last active August 29, 2015 14:04
Vagrant VM private_network not working
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Configure VM settings for servers running in VirutalBox.
@jasonkuhrt
jasonkuhrt / Vagrantfile
Last active August 29, 2015 14:04
Problems with network settings in Vagrant VMs
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Configure VM settings for servers running in VirutalBox.
var r = React
var t = r.PropTypes
module.exports = {
propTypes: {
value: t.any,
onChange: t.func,
valueLink: t.shape({
@jasonkuhrt
jasonkuhrt / trying-purescript.md
Last active August 29, 2015 14:10
Trying PureScript
@jasonkuhrt
jasonkuhrt / notes.md
Last active August 29, 2015 14:11
Docker Registry et al.

Private Registry

The --insecure-registry flag allows a docker daemon to communicate with a docker registry that is not secure.

When using the client to execute $ docker pull or ... push against an insecure registry it will fail unless that registry was listed in the --insecure-registry flag during the booting of the daemon.

A failure may have a pattern like this:

2014/12/09 12:38:13 Error: Invalid registry endpoint https:///v1/: Get https:///v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry ` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d//ca.crt
@jasonkuhrt
jasonkuhrt / pod.yaml
Created December 11, 2014 17:00
YAML file that is not validating with kubectl/cfg
id: cloud-delivery-test
kind: Pod
apiVersion: v1beta1
desiredState:
manifest:
version: v1beta1
containers:
- name: cloud-delivery-test
image: quay.io/littlebits/cloud-delivery-test:4308c23a5bf29be702a64ad92e9cb0d1dac403ad
# image: $DOCKER_REGISTRY/$DOCKER_REPO:$DOCKER_TAG
@jasonkuhrt
jasonkuhrt / session.md
Last active August 29, 2015 14:11
Attempting to get `$ kubectl log` to work
$ kubectl version --insecure-skip-tls-verify=true --server=https://146.148.60.38

Client Version: version.Info{Major:"0", Minor:"5", GitVersion:"v0.5", GitCommit:"e2e1c87ae06b303af92fdb5f44af60643d80469e", GitTreeState:"clean"}
Server Version: &version.Info{Major:"0", Minor:"4+", GitVersion:"v0.4.2", GitCommit:"2902951c445da6e6ead9e406b3c8e19bc28c2b4a", GitTreeState:"clean"}
$ kubectl describe pod bitlab-voteview --insecure-skip-tls-verify=true --server=https://146.148.60.38
@jasonkuhrt
jasonkuhrt / links.md
Last active August 29, 2015 14:13
cloud-api-stream kubernetes config files