This file contains hidden or 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
{ | |
"kind": "ConfigMap", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "aws-auth", | |
"namespace": "kube-system", | |
"uid": "8e201215-2d34-418b-afd1-190ec3a3bc80", | |
"resourceVersion": "5040", | |
"creationTimestamp": "2022-09-04T12:39:05Z", | |
"managedFields": [ |
This file contains hidden or 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
import unittest | |
import divide | |
class TestDivide(unittest.TestCase): | |
def test_divide_pass_0(self): | |
try: | |
self.assertEqual(divide.divide(10, 5), 2) | |
except: |
This file contains hidden or 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
def test(self): | |
try: | |
assert False | |
except AssertionError: | |
assert True |
This file contains hidden or 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
import unittest | |
import divide | |
class TestDivide(unittest.TestCase): | |
def test_divide_pass_0(self): | |
self.assertEqual(divide.divide(10, 5), 2) | |
def test_divide_pass_1(self): |
This file contains hidden or 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
def divide(a,b): | |
return a/b |
This file contains hidden or 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 -eou pipefail | |
namespace=$1 | |
if [ -z "$namespace" ] | |
then | |
echo "This script requires a namespace argument input. None found. Exiting." | |
exit 1 | |
fi | |
kubectl get namespace $namespace -o json | jq '.spec = {"finalizers":[]}' > rknf_tmp.json | |
kubectl proxy & | |
sleep 5 |
This file contains hidden or 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
print("Hello World") |
This file contains hidden or 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: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
name: host-docker-internal-demo | |
spec: | |
containers: | |
- image: alpine | |
name: alpine | |
command: ["sh"] |
This file contains hidden or 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
# ~/.zshrc | |
# Enabling and setting git info var to be used in prompt config. | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' enable git svn | |
# This line obtains information from the vcs. | |
zstyle ':vcs_info:git*' formats "- (%b) " | |
precmd() { | |
vcs_info | |
} |
This file contains hidden or 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
# ~/.zshrc | |
# Find and set branch name var if in git repository. | |
function git_branch_name() | |
{ | |
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') | |
if [[ $branch == "" ]]; | |
then | |
: | |
else |
NewerOlder