I hereby claim:
- I am devnulled on github.
- I am devnulled (https://keybase.io/devnulled) on keybase.
- I have a public key whose fingerprint is 8B20 AB7F 1079 A02E 80BE 487D 2874 2656 D1B0 C961
To claim this, I am signing this object:
# | |
# How to patch and delete CustomResourceDefinitions and CustomResources in Kubernetes | |
# | |
# | |
# Just copied and pasted from this solution in a kubernetes bug report: | |
# | |
# https://github.com/kubernetes/kubernetes/issues/60538 | |
# | |
# remove the CRD finalizer blocking on custom resource cleanup |
# Welcome to the chrony configuration file. See chrony.conf(5) for more | |
# information about usuable directives. | |
# | |
# Amazon AWS NTP Server | |
# | |
server 169.254.169.123 prefer iburst | |
# This directive specify the location of the file containing ID/key pairs for | |
# NTP authentication. |
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -q -y install chrony --no-install-recommends | |
sed -i 's/pool 2.debian.pool.ntp.org iburst/server 169.254.169.123 prefer iburst/g' /etc/chrony/chrony.conf | |
systemctl restart chrony |
# An example of running a command against each persistantvolume of a given storage class in CoolBrosNetes | |
# Grab the JSON to parse from k8s | |
kubectl get pv -o json > pv.json | |
# Parse the JSON with jq and run that shit | |
jq -r '.items[] | select(.spec.storageClassName=="my-storage-class") | [.metadata.name] | @tsv' pv.json | | |
while IFS=$'\t' read -r name; do | |
echo The name is $name | |
done |
#!/usr/bin/env python | |
# coding=UTF-8 | |
import math, subprocess | |
p = subprocess.Popen(["ioreg", "-rc", "AppleSmartBattery"], stdout=subprocess.PIPE) | |
output = p.communicate()[0] | |
o_max = [l for l in output.splitlines() if 'MaxCapacity' in l][0] | |
o_cur = [l for l in output.splitlines() if 'CurrentCapacity' in l][0] |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
Just a quick guide on methods I've seen to document GitHub projects. This is not a complete list by any means, just things I've ran across and bookmarked.
Note, this information is taken from user Big Ed at StackOverflow. Thanks Ed!
Create a properties file myExternalProperties.groovy
and put it on your classpath (such as the $TOMCAT_HOME/lib
directory).
Create a configuration file grails-app/conf/MyConfig.groovy
to use the external configuration values (if needed). You will not be able to use the properties defined in myExternalProperties.groovy
within grails-app/conf/Config.groovy
.
GitHub Pages URLs on an Enterprise instance take the form of http(s)://[hostname]/pages/[user]/[repo] |