This file contains 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
#!/bin/bash | |
if [ "$#" -eq 3 ]; then | |
IMAGE="$1" | |
AUDIO="$2" | |
OUTPUT="$3" | |
ffmpeg -loglevel panic \ | |
-f image2 -loop 1 \ | |
-i "$IMAGE" \ | |
-i "$AUDIO" \ |
This file contains 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
#import <UIKit/UIKit.h> | |
@interface EWAppDelegate : UIResponder<UIApplicationDelegate> | |
@property(strong, nonatomic) UIWindow *window; | |
@end |
This file contains 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
#!/bin/bash | |
echo '{"print":"pretty"}' | python -m json.tool |
This file contains 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
#!/bin/bash | |
docker stop `docker ps -aq` | |
docker rm `docker ps -aq` | |
docker rmi `docker images -aq` |
This file contains 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
#import "Flurry.h" |
This file contains 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
var n = 10 | |
var s = '========' | |
console.log(Array(n+1).join(s)) |
This file contains 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
#!/bin/bash | |
echo -n "Progress: " | |
for x in $(seq -f "%g" 0 99); do | |
sleep .05 | |
tput cub $((${#x}+1)); echo -n "$((x+1))%" | |
done | |
echo |
This file contains 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
#!/bin/bash | |
dscacheutil -flushcache && sudo killall -HUP mDNSResponder |
This file contains 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
#!/bin/bash | |
cat logs/mover.log | awk '/in [0-9]+\.[0-9]+s/{time = $11; sub(/s/, "", time); print $4"-"$3"-"$2"@"$5" " time}' | gnuplot -p -e "set xdata time; set timefmt \"%Y-%b-%d@%H:%M:%S\"; set yrange [0 : 10]; set xrange [\"2014-Jul-07@00:00:00\" : \"2014-Jul-09@00:00:00\"]; set term png size 1920,1080; set xtics format \"%m-%d %H:%M\"; plot '-' using 1:2" | base64 |
This file contains 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
#!/bin/bash | |
R -q -e "x <- read.csv('interesting.data', header = F); summary(x); sd(x[ , 1])" |
OlderNewer