I hereby claim:
- I am luckyjajj on github.
- I am luckyjajj (https://keybase.io/luckyjajj) on keybase.
- I have a public key ASD2pIy52zYUUHo_cYYyKlQtpuETFYix-3PlkEG7kiqzlAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
## Requires AWS CLI Tools | |
aws elasticache create-snapshot --cache-cluster-id redis-replica-1 --snapshot-name cg-backup-hourly-"$(date +"%Y-%m-%d-%H%M")" | |
if [ $(aws elasticache describe-snapshots --cache-cluster-id redis-replica-1 |grep SnapshotName | wc -l) = "8" ]; then | |
old_snapshot="$(aws elasticache describe-snapshots --cache-cluster-id redis-replica-1 |grep SnapshotName | head -1 | cut -d \" -f 4)" | |
aws elasticache delete-snapshot --snapshot-name $old_snapshot | |
fi |
// | |
// main.cpp | |
// Banner Modeling and Animation | |
// | |
// Created by Lakhveer Jajj on 2013-09-25. | |
// | |
#include <iostream> | |
#include <string> | |
#include <cstdlib> |
<div class="container indiv"> | |
<div class="card"> | |
<div class="face front"> | |
<img src="http://images2.wikia.nocookie.net/__cb20070802000213/memoryalpha/en/images/2/27/Spock,_2267.jpg" alt=""> | |
</div> | |
<div class="face back"> | |
<div id="text"> | |
<ul> | |
<li><img src="http://katcalvin.com/wp-content/uploads/2012/11/grey-twitter-icon-128.png"/>@LuckyJajj</li> | |
<li>[email protected] </li> |
window.onload = function() { | |
var supportsWebP = Modernizr.webp; | |
var allImages = document.body.getElementsByTagName("img"); | |
var length = allImages.length; | |
for(i = 0; i < length; i++){ | |
var image = allImages[i]; | |
var imgSource = image.getAttribute('data-img-source'); | |
image.src = supportsWebP ? imgSource.replace('.jpg', '.webp') : imgSource; | |
} | |
} |