Skip to content

Instantly share code, notes, and snippets.

Tamlyn Rhodes tamlyn

Block or report user

Report or block tamlyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tamlyn on github.
  • I am tamlyn (https://keybase.io/tamlyn) on keybase.
  • I have a public key ASDtLiAyqvI_72LatdxQWOQhNvOLwyMJZtFU0PRAywgROAo

To claim this, I am signing this object:

@tamlyn
tamlyn / README.md
Last active Mar 14, 2018
Start debugging a running node process
View README.md

Shows a list of all node processes and lets you select which one you want to debug.

For example

$ debug.sh
1) 73428 node webpack/webpackDevServer.js
2) 73494 node build/dist/server.js
Select which process to debug: █
@tamlyn
tamlyn / pull-modules.sh
Last active Dec 7, 2016
Update and build all npm linked modules
View pull-modules.sh
pull-modules () {
BASE_DIR=$(pwd)
# find symlinks in node_modules
for MODULE in $(find node_modules -type l -depth 1)
do
cd "$MODULE"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "Updating $MODULE ($BRANCH)..."
@tamlyn
tamlyn / README.md
Last active Jul 26, 2019
Execution order of Jest/Jasmine test code
View README.md

Execution order of Jest/Jasmine test code

While tests run in source order, surrounding code does not which can lead to hard to debug issues.

Compare the test file below with the sample output below that and note the order of the log messages.

Key points

  • Any code not inside of it, beforeAll, afterAll, beforeEach or afterEach runs immediately on initialisation.
    • This means code at the end of your file runs before even your before hooks.
@tamlyn
tamlyn / .gitlab-ci.yml
Last active Apr 10, 2016
Dockerised Gitlab+Ci+Runner
View .gitlab-ci.yml
before_script:
- npm install
test:
script: npm test
@tamlyn
tamlyn / README.md
Last active Aug 29, 2015
Warn when Gulp project dependencies need updating
View README.md

How many times have you had this conversation?

"Hey, the project doesn't run on my machine any more."

"Have you tried running npm install?"

...pause...

"Yeah, that fixed it, thanks"

@tamlyn
tamlyn / .profile
Last active Dec 10, 2018
Configs for our command line tools
View .profile
# Use nano instead of vim
EDITOR=nano
# always list in long format
alias ls='ls -la --color'
# set dynamic prompt and window/tab title
PS1='\[\e]0;${PWD##*/}\a\]\n' # set window title
#PS1="$PS1"'\u@\h ' # user@host<space>
PS1="$PS1"'\[\033[32m\]' # change color
You can’t perform that action at this time.