Skip to content

Instantly share code, notes, and snippets.

View lebeerman's full-sized avatar

dan beerman lebeerman

View GitHub Profile
# 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.
@lebeerman
lebeerman / db_parameter_queries.sh
Created November 9, 2023 23:58
Simple script to get unused database parameter groups
#!/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)
### 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:
#!/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
@lebeerman
lebeerman / strstr.cc
Last active July 2, 2021 18:11
team Activity - Strstr
// 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()){
@lebeerman
lebeerman / Kubernetes Learning 🎓.md
Last active June 2, 2020 14:42
Kubernetes Learning 🎓

Kubernetes Learning Materials

Getting Started with Kubernetes

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.

Getting Advanced

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@lebeerman
lebeerman / tmux-cheatsheet.markdown
Created October 15, 2019 17:12 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lebeerman
lebeerman / learning_resources_java.md
Last active November 22, 2019 18:07
Java Resources
@lebeerman
lebeerman / Shell Notes.md
Created August 7, 2019 18:25
Shell Notes and Links

Cool Stuff Links:

  • oh-my-zsh: the easiest way to start using zsh, one of the best shells
  • powerlevel9k: the easiest way to start using Powerline-style prompts in zsh
  • Fira Code: awesome monospace font with really great ligatures
  • Nerd Fonts: add fancy icons to Fira code
  • SCM Breeze: an incredible set of powerful git shortcuts and workflow helpers
  • Hub: open PRs, create projects, work with GitHub directly from the terminal