This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://letterbin.io/m/:bin_key/stream --no-buffer \ | |
| jq --unbuffered --raw-output '.attachments[0].data' \ | |
| xargs -I {} open "https://letterbin.io/{}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"email": ":[email protected]", | |
"bin_url": "https://letterbin.io/m/:bin" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amn() { | |
if [ $# -ge 1 -a ! -f $1 ]; then | |
input=$(cat -) | |
temp=$(mktemp) | |
echo $input > $temp | |
curl -sF "file=@$temp;filename=xyz.$1" https://amnesia.im | |
rm $temp | |
elif [ $# -ge 1 -a -f $1 ]; then | |
curl -sF "file=@$1" https://amnesia.im | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mock app for Timber.io | |
# Ruby v2.2.1p85 | |
# Sinatra v1.4.7 | |
# Started with just `rackup` | |
require 'bundler' | |
Bundler.require | |
require 'json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shasum -b -a 384 assets/static/js/codemirror.min.js | awk '{ print $1 }' | xxd -r -p | base64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker stats --no-stream | awk '{ gsub("%", "", $7); print $7 }' | tail +2 | paste -sd+ - | bc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for _x <- 1..100 do | |
for {name, pid, _type, _whatever} <- Supervisor.which_children(Process.whereis(__MODULE__.Supervisor)) do | |
{_msg, n } = Process.info(p, :message_queue_len) | |
IO.puts("#{name}: #{String.duplicate("#", n)}") | |
end | |
:timer.sleep(1000) | |
end |
OlderNewer