Skip to content

Instantly share code, notes, and snippets.

@ruimarinho
ruimarinho / sync-clock.sh
Last active Jun 20, 2019
Sync clock with ntpd on Alpine Linux (Docker.app VM)
View sync-clock.sh
#!/bin/sh
hwclock -s
@ruimarinho
ruimarinho / n-nightly.md
Last active Sep 27, 2016
How to install a node.js nightly using `tj/n` (node version management)
View n-nightly.md

Go to https://nodejs.org/download/nightly/ 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="https://nodejs.org/download/nightly/" n project v7.0.0-nightly2016092652b6cfb6eb
@ruimarinho
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
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
View keybase.md

Keybase proof

I hereby claim:

  • I am ruimarinho on github.
  • I am ruimarinho (https://keybase.io/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: