Skip to content

Instantly share code, notes, and snippets.

echo "Enter MFA token:"
read varname
aws sts get-session-token --serial-number <arn from aws security credentials> --output text --token-code $varname | \
awk '{printf("export AWS_ACCESS_KEY_ID=\"%s\"\nexport AWS_SECRET_ACCESS_KEY=\"%s\"\nexport AWS_SESSION_TOKEN=\"%s\"\n",$2,$4,$5)}'
@radamant
radamant / keybase.md
Created December 19, 2017 21:50
keybase.md

Keybase proof

I hereby claim:

  • I am radamant on github.
  • I am radamant (https://keybase.io/radamant) on keybase.
  • I have a public key ASASUx_SpgjpGxXvjj3nrhpvWCYe3ecpTZkvtoID94QctAo

To claim this, I am signing this object:

startshape fdsa[b 1 sat 1 h 0..360]
CF::Background = [b 0 h 30..90 sat 0.3]
shape fdsa {
loop 10[x 1] {
asdf[a -0.2]
}
}
shape asdf rule 8{
myshape[s 1 0.5..3 b -1..1]
CF::Background = [b -1]
startshape group[h 0..360 b 1 sat 0.5]
shape group rule 3 {
loop 700 [x -3..3 y -5..5 h -2.5..2.5 r -10..10]
cluster[s 0.4]
}
shape cluster rule 5{
loop 7 [r -0..360 a -0.5..0.5]
startshape asdf[ sat 0.4..0.7 b 1]
CF::Background = [h 200 b -0.9 sat 1]
shape asdf {
spike[]
asdf[s 0.98 x -3..3 r 30..90 h -10..10]
asdf[s 0.2 x -1..1 y -1..1 a -0.5]
}
shape spike {
CF::Background = [b -0.05]
startshape A
shape A {
loop 360[x 1 r 2]
loop 32[y -1..-3]
CIRCLE[b 0.05]
}
#!/usr/bin/env bash
url=$1
filename="${url##*/}"
[email protected]
if [ -z $filename ]
then
echo "A file name must be specified at end of URL"
fi
@radamant
radamant / GIF-Screencast-OSX.md
Created October 21, 2016 22:53 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

CF::Background = [sat 0 b -0.95]
startshape field[sat 1 b 1]
color_start = 0..360
adjustment pick_color() = select(randint(8),
[h (color_start + 90) sat 0.8 b -0.8],
[h (color_start + 90) sat 0.9 b 0],
[h (color_start + 120) sat 0.8 b 0],
[h (color_start + 120) sat 0.8 b -0.8],
[h (color_start + 150) sat 0.8 b -0.8],
CF::Background = [h 120 b -0.8 sat 0]
startshape force[sat 0 b 1]
shape force {
loop 3 [r 120] {
tritri[y (0.58 * 2)]
}
}
shape tritri {