export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
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
/* Prevent the text contents of draggable elements from being selectable. */ | |
[draggable] { | |
-moz-user-select: none; | |
-khtml-user-select: none; | |
-webkit-user-select: none; | |
user-select: none; | |
/* Required to make elements draggable in old WebKit */ | |
-khtml-user-drag: element; | |
-webkit-user-drag: element; | |
} |
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
<div class="container" id="c1"> | |
<a href="tutorial?gistid=855e0d8d0b6f6f53f06b"><div class="bonecard" gistid="855e0d8d0b6f6f53f06b"></div></a> | |
<a href="tutorial?gistid=16a217fd3a16d0645d5f"><div class="bonecard" gistid="16a217fd3a16d0645d5f"></div></a> | |
<a href="tutorial?gistid=dcc0c96306c138d656a7"><div class="bonecard" gistid="dcc0c96306c138d656a7"></div></a> | |
<a href="tutorial?gistid=eac17d013b3a7c335a19"><div class="bonecard" gistid="eac17d013b3a7c335a19"></div></a> | |
<a href="tutorial?gistid=258d4471dd36c31107d4"><div class="bonecard" gistid="258d4471dd36c31107d4"></div></a> | |
<a href="tutorial?gistid=7937e0c619af21693f79"><div class="bonecard" gistid="7937e0c619af21693f79"></div></a> | |
<a href="tutorial?gistid=786401651ca972197345"><div class="bonecard" gistid="786401651ca972197345"></div></a> | |
<a href="tutorial?gistid=223fcdc5882c9b6cb2f7"><div class="bonecard" gistid="223fcdc5882c9b6cb2f7"></div></a> | |
<a href="tutorial?gistid=c5fcfa04d2c12ed4f3d2"><div class="bonecard" gistid="c5fcfa04d2c12ed4f3d2"> |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"