Skip to content

Instantly share code, notes, and snippets.

ruimarinho /
Last active Jun 20, 2019
Sync clock with ntpd on Alpine Linux ( VM)
hwclock -s
ruimarinho /
Last active Sep 27, 2016
How to install a node.js nightly using `tj/n` (node version management)

Go to and pick a suitable nightly directory and copy the directory name (e.g. v7.0.0-nightly2016092652b6cfb6eb).

Install the nightly version:

PROJECT_NAME="node" PROJECT_URL="" n project v7.0.0-nightly2016092652b6cfb6eb
ruimarinho / gist:7f3e13a5856eda0cdad1276d4c25b46d
Created Aug 4, 2016
Rename files using index sequence via the `rename` util
View gist:7f3e13a5856eda0cdad1276d4c25b46d
brew install rename
rename -g 's/\d{2}-/$N-/' -N 01 'dir/*.ext'
ruimarinho / gist:fffd2c5fa03d9d43f72ab228a8ff794c
Last active Aug 11, 2016
Decode Sentry base64 compressed body requests via command-line
View gist:fffd2c5fa03d9d43f72ab228a8ff794c
brew install jq coreutils qpdf
echo '' | base64 -d | zlib-flate -uncompress | jq

Keybase proof

I hereby claim:

  • I am ruimarinho on github.
  • I am ruimarinho ( on keybase.
  • I have a public key whose fingerprint is D94A 18E2 51F2 465B 1A5B 5CDD 7F06 1322 DA5F 62D1

To claim this, I am signing this object: