Kubernetes website has a cool browser-based collection of exercises to get you started. Great materials to work through. Do those, see that k8s isnt that scary to run commands against. Find a buddy to work through them with and quiz each other to check for comprehension.
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
// First pass at writing C++... also probably should have checked the docs for some native find/includes/etc methods, | |
// but there's something kinda fun about brute forcing a solution first... | |
// TODO: other early return cases? string methods to use instead? ew nested loop... | |
class Solution { | |
public: | |
int strStr(string haystack, string needle) { | |
if (needle == "") { | |
return 0; | |
} else if (needle.length() > haystack.length()){ |
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 | |
# Note: You may need to chmod +x | |
echo "The name of this program is $0" | |
echo "The first arg passed in is: $1" | |
echo "The second arg passed in is: $2" | |
echo "The third arg passed in is: $3" | |
echo "All params: $*" | |
echo |
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
### Keybase proof | |
I hereby claim: | |
* I am lebeerman on github. | |
* I am lebeerman09 (https://keybase.io/lebeerman09) on keybase. | |
* I have a public key ASC68F-gE4S-xdpScNWbIMIgaJbQMifgajEuez5_d3sXUQo | |
To claim this, I am signing this object: |
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 | |
# NOTE you'll want to prefix this with any account assumption/shell prefix/saml/etc or redirect as needed :) | |
# TODO Cluster groups? | |
# Get all parameter groups | |
all_groups=$(aws rds describe-db-parameter-groups --query 'DBParameterGroups[].DBParameterGroupName' --output text) | |
# Get parameter groups used by DB instances | |
used_groups=$(aws rds describe-db-instances --query 'DBInstances[].DBParameterGroups[].DBParameterGroupName' --output text) |
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
# Pry Help | |
## Help | |
help Show a list of commands or information about a specific command. | |
## Context | |
cd Move into a new context (object or scope). | |
find-method Recursively search for a method within a class/module or the current namespace. |
OlderNewer