Skip to content

Instantly share code, notes, and snippets.

View carolynvs's full-sized avatar

Carolyn Van Slyck carolynvs

View GitHub Profile
@carolynvs
carolynvs / .bashrc
Last active March 1, 2017 02:14
Quickly cd into a golang repo
# 0. Add this function to ~/.bashrc.
# On a mac, install coreutils first and add this function to your ~/.bash_profile.
# 1. Make a shorter symlink pointing to the long golang directory name
# ln -s ~/go/src/github.com/foo/bar ~/foobar
# 2. goto foobar
goto() {
cd `realpath ~/$1`
}
@carolynvs
carolynvs / README.md
Last active April 28, 2017 20:26
Debian (Jesse) Docker Config
  1. Install Docker
    sudo apt-get install \
     apt-transport-https \
     ca-certificates \
     curl \
     software-properties-common
    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
    sudo add-apt-repository \
     "deb [arch=amd64] https://download.docker.com/linux/debian \
    
@carolynvs
carolynvs / Dual Mode Service Catalog CLI.md
Last active January 9, 2018 15:20
Dual Mode Service Catalog CLI

Dual Mode Service Catalog CLI

We can use the same binary as a standalone Service Catalog CLI, and as a kubectl plugin, with only minor modifications.

Standalone Binary

This is what you see today with svcat.

Installation

curl -sLO https://servicecatalogcli.blob.core.windows.net/cli/latest/$(uname -s)/$(uname -m)/svcat
@carolynvs
carolynvs / BundleConfig.cs
Created October 26, 2012 21:08
Demonstrates how to unit test ASP.NET MVC bundles
using System.Web.Optimization;
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle(Bundles.Styles.Common)
.Include("~/Content/normalize.css",
"~/Content/site.css"));
@carolynvs
carolynvs / readme.md
Last active January 13, 2019 17:45
Setup ALL THE THINGS!
  • brew install git
  • brew tap johanhaleby/kubetail && brew install kubetail or brew install --HEAD kubetail
  • brew install findutils gives me gfind, which supports all the args
  • brew install bash-completion gives me autocomplete for stuff like kubectl and minikube
  • Upgrade Bash so that I have access to more commands, flags and to get bash completion working for kubectl
    brew install bash
    sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells'
    chsh -s /usr/local/bin/bash
    
@carolynvs
carolynvs / push-charts.sh
Last active March 2, 2019 12:22
Publish Helm Charts to Azure Storage
#!/usr/bin/env bash
set -xeuo pipefail
helm init --client-only
#####
# set up the repo dir, and package up all charts
#####
CHARTS_REPO="https://athens.blob.core.windows.net"
@carolynvs
carolynvs / push-charts.Dockerfile
Created March 2, 2019 12:23
Publish Helm Charts to Azure
FROM golang:1.12-stretch
WORKDIR /tmp
# Install Helm
ENV HELM_VERSION=2.13.0
RUN curl -sLO https://kubernetes-helm.storage.googleapis.com/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
tar -zxvf helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/
@carolynvs
carolynvs / publish-charts.mk
Last active March 2, 2019 12:57
Publish Helm Charts to Azure storage
build-image:
docker build -t build-image ./scripts/build-image/
charts-push: build-image
docker run --rm -it \
-v `pwd`:/go/src/github.com/carolynvs/mypkg \
-e AZURE_STORAGE_CONNECTION_STRING \
build-image ./scripts/push-charts.sh
@carolynvs
carolynvs / sketchtool-diff-steps.md
Last active March 5, 2019 13:01
Configure Diffs for Sketch Files
  1. Add the following line to your ~/.bash-profile
    export PATH=$PATH:"$(mdfind kMDItemCFBundleIdentifier == 'com.bohemiancoding.sketch3' | head -n 1)/Contents/Resources/sketchtool/bin/"
    
  2. Add the following lines to your ~/.gitconfig
    [diff "sketchtool"]
      textconv = "sketchtool dump"
      cachetextconv = true
    

binary = true

@carolynvs
carolynvs / install-mono.sh
Last active April 19, 2020 11:14
Install Mono on Ubuntu
wget http://download.mono-project.com/repo/xamarin.gpg
sudo apt-key add xamarin.gpg
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee --append /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
sudo certmgr -ssl -m https://go.microsoft.com
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
sudo certmgr -ssl -m https://nuget.org
mozroots --import --sync