Skip to content

Instantly share code, notes, and snippets.

View lawrencewalters's full-sized avatar

Lawrence Walters lawrencewalters

View GitHub Profile
@lawrencewalters
lawrencewalters / gist:2497526908599e2b4e32
Created September 16, 2014 16:47
level up rails Ruby Basics answers
Explain how the Five Second Rule for code review works.
The five second rule is the concept that if you can't understand the intent of a line of code or method in 5 seconds
then it is likely that item is too complex, and needs to be broken down into more easily understandable components.
Knows why comments lie, and how to write self-documenting code
The phrase "comments lie" refers to the fact that because comments are not a part of the working application,
they are never tested, reviewed, or used in production. Because of this, as bugs are found, or enhancements
are made, the functionality is verified, but the comments are never validated in any consistent way. Thus,
@lawrencewalters
lawrencewalters / Pentaho - RabbitMQ integration.md
Last active May 4, 2022 16:53
Pentaho - RabbitMQ integration

Pentaho - RabbitMQ on Windows Proof of Concept

RabbitMQ install

Went with the manual install (kept getting an error on erlang not being available;

Erlang could not be detected. You must install Erlang before installing RabbitMQ. Would you like the

@lawrencewalters
lawrencewalters / gist:4c5cd0e2913a120720d2cb506d94f2a2
Created March 4, 2019 15:10
use bash to generate password with diceware word list
for run in {1..6}; do shuf -i 1-6 -n 5 -r|perl -ne 'chomp;print' | xargs -I pattern grep pattern diceware.wordlist.asc; done
@lawrencewalters
lawrencewalters / git-tips.md
Created March 4, 2025 14:45
git commands that are useful

Delete all local branches that have no remote / have been merged

git branch -vv | grep -v ']'| grep -v "\*" | awk '{ print $1; }' | xargs git branch -d