Skip to content

Instantly share code, notes, and snippets.

View dracan's full-sized avatar

Dan Clarke dracan

View GitHub Profile
@dracan
dracan / Setup.ps1
Last active October 9, 2022 18:41
Copy of my dotnet setup script (my main repo is private, but creating Gist just to share this file)
# Setup symlinks
$mappings = @(
@{
source = "$Env:USERPROFILE\.gitconfig"
dest = "$PWD\Git\.gitconfig"
},
@{
source = "$Env:LOCALAPPDATA\nvim\"
dest = "$PWD\NeoVim\"
@dracan
dracan / LINQPadUEPGiveaway.linq
Created February 14, 2021 08:25
Unhandled Exception Podcast: LINQPad giveaway
<Query Kind="Program">
<NuGetReference>linqtotwitter</NuGetReference>
<Namespace>LinqToTwitter</Namespace>
<Namespace>LinqToTwitter.OAuth</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
</Query>
#load ".\Creds"
async Task Main()
@dracan
dracan / InitMaster.sh
Last active May 10, 2019 16:44
Install Kubernetes
#!/bin/bash
# Pre-pull the requisites Docker images needed to run a Kubernetes master
kubeadm config images pull -v3
# Init master node
kubeadm init --token-ttl=0 --pod-network-cidr=10.244.0.0/16 # This uses the Flannel pod network addon
# Setup local access to the cluster via the kubectl command
mkdir -p $HOME/.kube
@dracan
dracan / docker-compose.yaml
Created December 25, 2018 08:59
Prometheus/Grafana - docker-compose
version: '3.1'
services:
prometheus:
image: prom/prometheus:v2.1.0
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
@dracan
dracan / Using Docker with Vagrant on Windows
Last active October 1, 2016 15:45
Using Docker with Vagrant on Windows