Skip to content

Instantly share code, notes, and snippets.

@ryanhatfield
ryanhatfield / kwok.mk
Last active March 26, 2023 06:06
Kwok Makefile Helper
# Helper makefile for using kwok as part of testing
# https://kwok.sigs.k8s.io/
# Author: Ryan Hatfield
# https://gist.github.com/ryanhatfield/1ec81e468abf8cd0803b4d578adb1de4
CLUSTER_NAME:=$(shell basename $$PWD)
export KUBECONFIG=$(CLUSTER_NAME).kubeconfig
KWOKCTL:=kwokctl --name=$(CLUSTER_NAME)
isRunning=$(patsubst $(1),true,$(filter $(shell $(KWOKCTL) get clusters),$(1)))
@ryanhatfield
ryanhatfield / hide-slack-sidebar-icons
Last active October 4, 2023 06:13
Hide Slack Sidebar Icons
#! /usr/bin/env bash
##############
##
## A script to inject a custom style into Slack that hides the new sidebar icons.
## This script has very little error catching or extra debug output
##
## Run at your own risk.
## Anything done here can be "uninstalled" by reinstalling Slack
##
## To run Slack in debug mode, run the following:
@ryanhatfield
ryanhatfield / Makefile.mk
Last active February 5, 2016 05:02
Minimal web docker container
# This is just a proof of concept but could be used to make simple web servers
# put this in the root of your 'botlink-fly' repo and run 'make', then 'make deploy'
CURRENT_PATH := $(shell pwd)
DEPLOY_TMP_NAME := deploy-tmp
DEPLOY_TMP := $(CURRENT_PATH)/$(DEPLOY_TMP_NAME)
DEPLOY_APP_NAME := fly-test
DEPLOY_DEIS_URL := deis.platform.botlink.com
GO_CMD_PATH := $(shell which go)
@ryanhatfield
ryanhatfield / designer.html
Created December 20, 2015 21:56
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ryanhatfield
ryanhatfield / dotnetlayout.md
Created October 24, 2015 03:11 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  docs/
  src/
  tests/
  samples/
  artifacts/
  packages/
  build/
 lib/
@ryanhatfield
ryanhatfield / stacktrace.cs
Last active October 14, 2015 14:39 — forked from mjhlobdell/botboxes_500_errors_for_post.json
500 error for Botbox POST
at System.Nullable`1<long>.get_Value () <0x00056>
at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,Botlink.Core.Models.Identity.BotBox) <0x00055>
at FluentValidation.Internal.Extensions/<>c__DisplayClass1`2<Botlink.Core.Models.Identity.BotBox, long>.<CoerceToNonGeneric>b__0 (object) <0x00048>
at FluentValidation.Validators.PropertyValidatorContext.get_PropertyValue () <0x0003e>
at FluentValidation.Validators.PropertyValidator.Validate (FluentValidation.Validators.PropertyValidatorContext) <0x00074>
at FluentValidation.Internal.PropertyRule.InvokePropertyValidator (FluentValidation.ValidationContext,FluentValidation.Validators.IPropertyValidator,string) <0x00068>
at FluentValidation.Internal.PropertyRule/<Validate>d__10.MoveNext () <0x003f9>
at System.Linq.Enumerable/<CreateSelectManyIterator>c__Iterator12`2<FluentValidation.IValidationRule, FluentValidation.Results.ValidationFailure>.MoveNext () <0x0034f>
at System.Collections.Generic.List`1<FluentValidation.Results.Va
@ryanhatfield
ryanhatfield / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;