Skip to content

Instantly share code, notes, and snippets.

View visualdensity's full-sized avatar
🤷‍♂️
Whassup?

Wicked visualdensity

🤷‍♂️
Whassup?
View GitHub Profile
#!/bin/bash
set -eo pipefail
pools=("core" "batch" "system")
poolPrefix="worker-pool-"
for i in "${pools[@]}"
do
poolName="${poolPrefix}${i}"
{
"_text": "how many pods in production?",
"entities": {
"platform": [
{
"confidence": 0.99845916393584,
"value": "k8s"
}
],
"environment": [
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@visualdensity
visualdensity / self_sign_proc.sh
Last active February 11, 2019 00:50 — forked from yuezhu/gist:47b15b4b8e944221861ccf7d7f5868f5
Generate self-signed certificate for HAProxy
# Generate a unique private key (KEY)
sudo openssl genrsa -out mydomain.key 2048
# Generating a Certificate Signing Request (CSR)
sudo openssl req -new -key mydomain.key -out mydomain.csr
# Creating a Self-Signed Certificate (CRT)
openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
# Append KEY and CRT to mydomain.pem
while true; do {command}; sleep 2; done
@visualdensity
visualdensity / list.txt
Created October 25, 2018 03:07 — forked from shortjared/list.txt
List of AWS Service Principals
acm.amazonaws.com
apigateway.amazonaws.com
athena.amazonaws.com
autoscaling.amazonaws.com
clouddirectory.amazonaws.com
cloudformation.amazonaws.com
cloudfront.amazonaws.com
cloudsearch.amazonaws.com
cloudtrail.amazonaws.com
codecommit.amazonaws.com
oc get pods --all-namespaces -o wide | grep -v -E '^(logging|openshift|default|NAMESPACE)' | sort | awk '{print $1","$2","$8}' > os-all-pods.csv
apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2018-09-05T05:46:14Z
labels:
app: web
name: public-web-svc
namespace: default
resourceVersion: "14972"
selfLink: /api/v1/namespaces/default/services/public-web-svc
# Largest filesize in current dir
du -hs * | sort -rh | head -5
# Largest directory
du -Sh | sort -rh | head -5

Income Data Set:

Commands

Get the file:

wget https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data

Using the cat command