Skip to content

Instantly share code, notes, and snippets.

@okhiwell
okhiwell / cleanup.sh
Created December 15, 2019 11:59 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
@okhiwell
okhiwell / Memory.java
Created February 7, 2020 12:04 — forked from bindiego/Memory.java
Check JVM compressed oops option
public class Memory {
// Dummy Entity representing usual data objects
private static class Entity {
public String name;
public String detail;
public Double amount;
public Integer age;
}
@okhiwell
okhiwell / ActionAndGuard.json
Created April 2, 2020 02:53 — forked from KristianKarl/ActionAndGuard.json
Action and guard example
{
"models": [
{
"edges": [
{
"id": "428252c0-6e69-11ea-a7bb-83cbb6bc6f6f",
"name": "e_Login",
"sourceVertexId": "2505cce0-6e69-11ea-a7bb-83cbb6bc6f6f",
"targetVertexId": "2863c4f0-6e69-11ea-a7bb-83cbb6bc6f6f"
},