Skip to content

Instantly share code, notes, and snippets.

View thetrompf's full-sized avatar
🎯
Focusing

Brian Haven Kejlberg thetrompf

🎯
Focusing
View GitHub Profile
@thetrompf
thetrompf / openpgp.txt
Created April 6, 2019 15:38
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f52edd4fd06ea79b450b3b455d025469c35594d7]
@thetrompf
thetrompf / openpgp.txt
Created November 13, 2018 19:25
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f52edd4fd06ea79b450b3b455d025469c35594d7]
fs.rmrf = (dir, callback) ->
# test if the directory exists.
fs.exists dir, (exists) ->
# return if the directory already is gone.
return callback null unless exists
fs.stat dir, (err, stats) ->
# return if an error occured.
return callback err if err
# unlink if it is a file, else continue, the recursive call.
return fs.unlink dir, callback unless stats.isDirectory()