Last active
August 29, 2015 14:19
-
-
Save itamarhaber/a1d8d6934ac9c1909cae to your computer and use it in GitHub Desktop.
Redis commands evolution
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
# get Redis' repo tags and their dates | |
git log --tags --simplify-by-decoration --pretty="format:%ct %d" | awk 'BEGIN { print "timestamp, tag" } /.*\(.*\)/ { print $1 ", " substr($3, 0, length($3)-1) }' > tags.csv | |
git log --tags --simplify-by-decoration --pretty="format:%ct %d" | awk 'BEGIN { print "{ \"releases\": [" } /.*\(.*\)/ { print " { \"timestamp\": " $1 ", \"name\": \"" substr($3, 0, length($3)-1) "\" }," } END { print " { \"timestamp\": 0, \"name\": \"the-big-bang\" }"; print "]}" }' > tags.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
<!DOCTYPE html> | |
<!-- | |
Clever title | |
By Itamar Haber, Redis Labs | |
!--> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
<script> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment