Skip to content

Instantly share code, notes, and snippets.

View DominicWatson's full-sized avatar

Dominic Watson DominicWatson

View GitHub Profile
@adamcameron
adamcameron / no.cfm
Created December 8, 2014 12:09
For Kev. I would use local scope explicitly if I could not VAR-and-use in the same statement, eg:
<cfscript>
var text = "";
savecontent variable="text" {
// stuff here
}
writeOutput(text);
</cfscript>
@juliohm1978
juliohm1978 / k8s-drain.sh
Last active March 13, 2024 14:12
Drains a Kubernetes node using "rollout restart" instead "kubectl drain". See comments for motiviation and usage.
#!/bin/bash
NODE_NAME=$1
ROLLOUT_CMD=$2
if [[ "$NODE_NAME" == "" ]]; then
echo "
USAGE: ./drain.sh <NODE_NAME>
Drains a node from its Deployments/Stateful set pods.