Skip to content

Instantly share code, notes, and snippets.

View beNjiox's full-sized avatar

Benjamin Guez beNjiox

View GitHub Profile
@beNjiox
beNjiox / file.io.sh
Last active June 7, 2019 21:41 — forked from gingerbeardman/file.io.sh
Scripts that work as is on a remote debug Heroku CI console (to extract screenshots, logs, etc.)
#!/bin/sh
# Install:
# curl https://gist.githubusercontent.com/gingerbeardman/a7737e4c89fccab8605f8538ddaeec0d/raw/a78f5253b0fcdbd7b893f91627a29498690356ea/file.io.sh | tee file.io && chmod +x file.io
URL="https://file.io"
DEFAULT_EXPIRE="14d" # Default to 14 days
if [ $# -eq 0 ]; then
echo "Usage: file.io FILE [DURATION]\n"
echo "Example: file.io path/to/my/file 1w\n"