I hereby claim:
- I am paulojeronimo on github.
- I am paulojeronimo (https://keybase.io/paulojeronimo) on keybase.
- I have a public key ASBCJ16fy6V052sD0-0Q6mAbchT7rS8UmXjEngLFFV-LsAo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -eou pipefail | |
cursor_dir=${cursor_dir:-~/Downloads} | |
cursor_prefix=cursor- | |
cursor_suffix=.AppImage | |
cursor_files=($(echo $cursor_dir/$cursor_prefix*$cursor_suffix)) | |
log() { | |
local level=${level:-INFO} |
npub1hq6d29kfunp3nhmtd06lvrnfqwylkp25zjgnjk0rupcp9fdtyycqvmwcy7 |
#!/usr/bin/env bash | |
cat <<'EOF' | |
If we divide 1 by 998001 we get the number ".000 001 002 003 ... 997 999 ...". | |
Look how curious: the 998 simply disappears! | |
Want proof? Read the code of this script! | |
Read more: https://www.linkedin.com/feed/update/urn:li:activity:6954872558508732416/ | |
EOF |
I hereby claim:
To claim this, I am signing this object:
Using Node.js (and the package serve
)
$ serve -s .
Using Python 3
$ python3 -m http.server 3000
#!/usr/bin/env bash | |
BUILD_DIR=${BUILD_DIR:-build} | |
ADOC=${ADOC:-README.adoc} | |
REMOTE_REPO=${REMOTE_REPO:-`git config --get remote.origin.url`} || : | |
GENERATE_PDF=${GENERATE_PDF:-false} | |
HTML_NAME=${HTML_NAME:-index.html} | |
PDF_NAME=${PDF_NAME:-`basename "$BASE_DIR".pdf`} | |
SERVE_PORT=${SERVE_PORT:-5001} | |
MAIN_BRANCH=${MAIN_BRANCH:-main} |
#!/usr/bin/env bash | |
set -eou pipefail | |
! [[ `uname` = Darwin ]] || { | |
command -v greadlink &> /dev/null || { | |
echo "Install greadlink! ($ brew install coreutils)" | |
exit 1 | |
} | |
readlink() { greadlink "${@:-}"; } | |
} |
All your notes, scripts, config files and snippets deserve version control and tagging!
gist
is a simple bash script for gist management.
It is light and dependency-free! Helps you to boost coding workflow.
vm-mount |
FROM ubuntu | |
RUN apt-get install ... | |
# grab gosu for easy step-down from root | |
ENV GOSU_VERSION 1.10 | |
RUN set -x \ | |
&& curl -sSLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ | |
&& curl -sSLo /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ | |
&& export GNUPGHOME="$(mktemp -d)" \ |