This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="[\u@\h:\w]\n\\$ \[$(tput sgr0)\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command to run vscode server in Kubernetes. | |
# derived from | |
# docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --no-auth | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: coder-ide-vol | |
spec: | |
accessModes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1beta2 | |
kind: DaemonSet | |
metadata: | |
name: datetimecheck | |
spec: | |
selector: | |
matchLabels: | |
name: datetimecheck | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-01-21T03:50:42.094Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set variables | |
export CCP_CP=10.100.51.100 | |
export CCP_LOGIN=admin | |
export CCP_PASS='Cisco123!' #space shouldn't record command in history and thus the password, but you can see it in env, doh! | |
# Get a v3 Token | |
export TOKEN=$(curl --http2 -v -k -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "username=${CCP_LOGIN}&password=${CCP_PASS}" https://"${CCP_CP}/v3/system/login" 2>&1 | awk '$2~/[Xx]-[Aa]uth-[Tt]oken/{gsub("\r","",$3);printf "%s",$3}') | |
[ -n "$TOKEN" ] && echo "${TOKEN}" || echo "Bad LOGIN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Get the Cluster ingress IP | |
IP=$(kubectl get svc -n ccp nginx-ingress-controller -o jsonpath='{.spec.loadBalancerIP}') | |
printf "Harbor UI\n" | |
printf "https://%s/\n" ${IP} | |
printf "username: admin\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set cluster config path | |
export KUBECONFIG=${KUBECONFIG:-~/.kube/config} | |
# Kibana username | |
KIBANA_USERNAME=admin | |
KIBANA_PASSWORD=superdooper | |
# Configure Kibana server.basePath param |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=xpra display | |
[Service] | |
Type=simple | |
User=%i | |
EnvironmentFile=/etc/conf.d/xpra | |
ExecStart=/usr/bin/xpra --no-daemon start ${%i} | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccpVcenterRoles=( | |
Extension.Register | |
Extension.Unregister | |
Extension.Update | |
StorageProfile.View | |
System.Anonymous | |
System.Read | |
System.View |
OlderNewer