I hereby claim:
- I am inanimate on github.
- I am supermario (https://keybase.io/supermario) on keybase.
- I have a public key whose fingerprint is F717 95C8 0EB3 D57F A8C5 96B9 5A56 5953 1FAC CE9F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function update () { | |
| function submod_push () { | |
| CHANGE_LIST=("${(@f)$(git status --porcelain)}") | |
| if [ $? -eq 0 ]; then | |
| # command ran fine..continue | |
| if [ ${CHANGE_LIST[1]} ]; then | |
| echo -en " ${txtyellow}*${reset} ${txtlitepurple}The following changes exist:${reset}\n" | |
| for change in ${CHANGE_LIST[@]}; do | |
| echo -en " ${txtyellow}*${reset} ${txtlitegray}${change}${reset}\n" | |
| done |
AddTrustExternalCARoot.crt as part of the trusted certificate since, to my knowledge (and most people on the web), this cert should already exist in the clients' browser.unzip scriptthe_net.zip
cat scriptthe_net.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt > ssl_certificate
cat COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt > ssl_trusted_certificateThis is how I setup my ssl keys for nginx. The file im catting them to is the associated configuration parameter in your server config. You'll define it like so:
| # setup for easy management of iptables | |
| function ipt { | |
| if [[ "$1" == "clear" ]]; then | |
| print -P "\e[95mFlushing firewall and allowing everyone...\n" | |
| sudo iptables -F | |
| sudo iptables -X | |
| sudo iptables -t nat -F | |
| sudo iptables -t nat -X | |
| sudo iptables -t mangle -F | |
| sudo iptables -t mangle -X |
| #!/bin/sh | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time | |
| # reading and understanding it :) | |
| # | |
| # This scripts purpose is purly to save you a few seconds on your new installation. | |
| # | |
| # Enjoy your time on an awesome system. Arch FTW! |
| function kcsh () { | |
| if [ $# -eq 4 ]; then | |
| kubectl exec -ti "${2}" -c "${3}" --namespace="${1}" -- "${4}" | |
| else | |
| echo "Usage: $0 <namespace> <pod> <container> <command>" | |
| fi | |
| } |
| kind: Role | |
| apiVersion: rbac.authorization.k8s.io/v1alpha1 | |
| metadata: | |
| name: {{ template "fullname" . }} | |
| rules: | |
| - apiGroups: ["*"] | |
| resources: ["*"] | |
| verbs: ["get", "watch", "list"] | |
| nonResourceURLs: [] | |
| --- |
| The following is some httpstat investigation relating to api calls. | |
| └[~]> httpstat https://api.auth0.com | |
| Connected to 52.9.60.147:443 from 192.168.1.149:56408 | |
| HTTP/1.1 302 Found | |
| Date: Tue, 14 Mar 2017 14:28:43 GMT | |
| Content-Type: text/plain; charset=UTF-8 | |
| Content-Length: 39 | |
| Connection: keep-alive |
| root@test-zfs:~# fallocate -l 1G 1 | |
| root@test-zfs:~# fallocate -l 1G 2 | |
| root@test-zfs:~# fallocate -l 1G 3 | |
| root@test-zfs:~# fallocate -l 1G 4 | |
| root@test-zfs:~# l | |
| 1 2 3 4 | |
| root@test-zfs:~# ls -lah | |
| total 4.1G | |
| drwx------ 4 root root 4.0K Mar 16 02:16 . | |
| drwxr-xr-x 23 root root 4.0K Mar 16 02:05 .. |
| function kcc () { | |
| usage () { | |
| echo -en "Usage: $0 <context> <namespace>\n" | |
| } | |
| result () { | |
| echo -en "-> Context: \e[96m$context\e[0m\n-> Namespace: \e[92m$namespace\n\e[0m" | |
| } | |
| if [ $# -eq 0 ] ; then | |
| ## If no options, print the current context/cluster and namespace | |
| context="$(kubectl config current-context 2>/dev/null)" |