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
//dump jpeg | |
curl "http://10.41.3.120/cgi-bin/faststream.jpg?stream=MxPEG&fps=0.1" | mxgconv_linux format=jpeg,of=img | |
//split images | |
find ./ | grep jpg |xargs -I@ convert -quality 100 -crop 640x480 @ @_cropped_%d.jpg | |
//preserve original filename in images | |
ls | xargs -I@ echo exiftool -Comment=@ @ | |
//rename file to md5sum name |
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 | |
find /path/to/JPEGImages | grep jpg$ | shuf > files.list | |
cat files.list | wc -l | |
#180 = 10% | |
cat files.list | head -n 180 > test.txt | |
#rest goes into train.txt | |
cat files.list | grep -v -f test.txt > train.txt |
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 | |
cd $ANDROID_HOME/platform-tools | |
echo `adb devices` | |
curl -O http://i.imgur.com/0H5GsQV.png | |
adb push 0H5GsQV.png /sdcard/Download | |
echo $ANDROID_HOME |
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 | |
#! /bin/bash | |
# Wait until the simulator is running before we try to add the file | |
simulator=$(ps aux | grep launchd_sim | grep -v grep) | |
while [ -z "$simulator" ] | |
do | |
echo Sleeping for 5 | |
sleep 5 |
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
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |