Skip to content

Instantly share code, notes, and snippets.

View dracan's full-sized avatar

Dan Clarke dracan

View GitHub Profile
@dracan
dracan / Using Docker with Vagrant on Windows
Last active December 29, 2024 10:28
Using Docker with Vagrant on Windows
@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 / 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 / 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 / Setup.ps1
Last active September 7, 2024 02:58
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 / SKILL.md
Created June 26, 2026 15:07
one-at-a-time/SKILLmd
name one-at-a-time
description Ask me one question at a time

Instead of the wall of text you've just given me, please ask me one question at a time. For any parts that are just informative, please tell me one bit of information at a time.

@dracan
dracan / SKILL.md
Created June 26, 2026 15:15
teach-me/SKILL.md
name teach-me
description Teach me, one level at a time

I want you to teach me this so that I understand it fully. Please teach me one level at a time, and make sure I understand each level before moving on to the next. Only show me one level at a time - do not list multiple levels at once. After each level, ask me questions to check my understanding before moving on to the next level. Also give me an opportunity to ask questions before moving on.

I do not want to see walls of text - please break down the information into manageable chunks.