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
timestamp | temp_f | |
---|---|---|
2017-04-30 13:05:01 | 71.375 | |
2017-04-30 13:10:01 | 71.487 | |
2017-04-30 13:15:01 | 71.487 | |
2017-04-30 13:20:01 | 71.600 | |
2017-04-30 13:25:01 | 71.600 | |
2017-04-30 13:30:01 | 71.600 | |
2017-04-30 13:35:01 | 71.713 | |
2017-04-30 13:40:01 | 71.825 | |
2017-04-30 13:45:01 | 71.825 |
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
# There's a bug in the Android Camera that doesn't set Create Date and Date Time Original in the photo's EXIF meta data, but only when the images are NOT set to HDR+ | |
# The following is fix using exiftool (brew install exiftool) to set these fields | |
# Run these in the terminal in sequence | |
# First fix DateTimeOriginal | |
exiftool "-datetimeoriginal<filemodifydate" -r -if '(not $datetimeoriginal or ($datetimeoriginal eq "0000:00:00 00:00:00")) and ($filetype eq "JPEG")' *.jpg | |
# Then fix CreateDate | |
exiftool "-createdate<datetimeoriginal" -r -if '(not $createdate or ($createdate eq "0000:00:00 00:00:00")) and ($filetype eq "JPEG")' *.jpg |
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
mysql -h localhost -u root -e "show slave status\G" | grep "Seconds_Behind_Master" | awk '{print $2}' |
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
iPad | |
1024 × 690 In landscape on iOS 4.3 | |
1024 × 672 In landscape on iOS 5 | |
768 × 946 In portrait on iOS 4.3 | |
768 × 928 In portrait on iOS 5 | |
1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3 | |
1024 × 644 Always showing bookmarks bar in landscape on iOS 5 | |
768 × 916 Always showing bookmarks bar in portrait on iOS 4.3 |
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 subprocess | |
import requests | |
import time | |
import os,sys | |
MAGIC_FORM_URL = 'http://api.cloudstitch.io/...your_url' | |
def record_wake(): | |
data = { | |
"Timestamp": time.strftime("%Y-%m-%d %H:%M"), |
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 | |
# requires exif command line utility | |
shopt -s nocaseglob #find both *.jpg and *.JPG | |
for i in *.JPG; do | |
j=`exif -t 0x9003 "$i" | grep Value: | sed 's/Value://' | sed s/:/-/g | sed s/-/./3 | sed s/-/./3`.jpg | |
mv -i "$i" "$j" | |
done |
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 | |
a=1 | |
for i in *.jpg; do | |
new=${i:9} | |
mv "${i}" "${new}" | |
let a=a+1 | |
done |
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 fs = require('fs'), | |
path = require('path') | |
function dirTree(filename) { | |
var stats = fs.lstatSync(filename), | |
info = { | |
path: filename, | |
name: path.basename(filename) | |
}; |
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
while true; do mysql -uroot -e "show processlist" | grep 29357; sleep 10; done |
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
# Get hard drive info | |
wmic logicaldisk get | |
# Quicky create a system image backup | |
wbAdmin start backup -backupTarget:E: -include:C: -allCritical -quiet |