Skip to content

Instantly share code, notes, and snippets.

@BenHall
BenHall / hello-world.md
Last active November 8, 2021 06:18
GitHub Profile Gist
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
spec:
selector:
matchLabels:
app: example
replicas: 1
template:
Param(
[parameter(Mandatory = $true)] $ManagementIP,
[ValidateSet("l2bridge", "overlay",IgnoreCase = $true)] [parameter(Mandatory = $false)] $NetworkMode="l2bridge",
[parameter(Mandatory = $false)] $ClusterCIDR="10.244.0.0/16",
[parameter(Mandatory = $false)] $KubeDnsServiceIP="10.96.0.10",
[parameter(Mandatory = $false)] $ServiceCIDR="10.96.0.0/12",
[parameter(Mandatory = $false)] $InterfaceName="Ethernet",
[parameter(Mandatory = $false)] $LogDir = "C:\k",
[parameter(Mandatory = $false)] $KubeletFeatureGates = ""
)
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+r",
"command": "workbench.action.replaceInFiles"
},
{
"key": "shift+cmd+h",
"command": "-workbench.action.replaceInFiles"
},
@BenHall
BenHall / readme.md
Last active December 1, 2017 21:52
Example Readme.md

Title

Goals

Install

Usage

apiVersion: v1
kind: Pod
metadata:
labels:
name: iis
name: iis
namespace: default
spec:
containers:
- image: microsoft/iis
@BenHall
BenHall / fix.sh
Created June 9, 2017 15:51
downgrade boot2docker
curl -LO https://get.docker.com/builds/Linux/x86_64/docker-17.05.0-ce.tgz
tar -xvf docker-17.05.0-ce.tgz
cp -r docker/* /usr/local/bin
/etc/init.d/docker restart
docker version
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@BenHall
BenHall / Dockerfile
Created April 11, 2017 15:44
tensorflow-serving Dockerfile
FROM katacoda/tensorflow-serving-devel:latest
WORKDIR /serving
EXPOSE 9000
CMD ["bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server", "--port=9000", "--model_name=inception", "--model_base_path=inception-export"]
# Client Example
# bazel-bin/tensorflow_serving/example/inception_client --server=localhost:9000 --image=/path/to/my_cat_image.jpg
COPY . /serving
RUN cd /serving/tensorflow && \
@BenHall
BenHall / ConnectionStrings.config
Created January 19, 2017 15:03
Deploy NerdDinner.com 2.0 as Windows Containers
<connectionStrings>
<add name="ApplicationServices" connectionString="Data Source=nerddinnerdb,1433;User Id=sa;Password=p@sSw0rd1sl0ngY0;" providerName="System.Data.SqlClient"/>
<add name="NerdDinnerEntities" connectionString="metadata=res://*/Models.NerdDinner.csdl|res://*/Models.NerdDinner.ssdl|res://*/Models.NerdDinner.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=nerddinnerdb,1433;User Id=sa;Password=p@sSw0rd1sl0ngY0;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
<add name="ELMAH.SQLite" connectionString="Data Source=|DataDirectory|errors.s3db"/>
</connectionStrings>