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 | |
########################################################################### | |
# Choose your ffmpeg version and your currently-installed iOS SDK version: | |
# | |
VERSION="2.3.1" | |
SDKVERSION="7.1" | |
ARCHS="armv7 armv7s i386" | |
# | |
# |
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 | |
rm -rf ./output | |
mkdir ./output | |
for file in ./* | |
do | |
if [ "${file##*.}" = "mp3" ]; then | |
/usr/bin/afconvert "$file" ./output/"${file%.mp3}.caf" -d ima4 -f caff -v | |
fi |
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 | |
DIR=./pics | |
if [ ! -d "$DIR" ]; | |
then | |
echo "dir not exist" | |
exit 0 |
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/sh | |
Path="/Users/bitmess/Desktop/Git/Demo" #改为项目的全路径 | |
Mans="bitmess bitgoodies" #所有的提交Author | |
######################################################################## | |
function ToHtml(){ |
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/sh | |
#static NSString* const kUploadURL = @"#{login}/upload"; | |
cat 1 | grep -Eo '@"#{.*}.*"' | awk '{print $1","}' > re.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/sh | |
cat GPS.csv | awk -F, '{print "@{@\"lat\":@"$4",@\"lng\":","@"$5",@\"speed\":","@("$10")},"}' | |
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/sh | |
find . \( -path '*/Library' -o -path '*/Pods' \) -a -prune -o \( -name '*.jpg' -o -name '*.png' \) -size +1M -print > ~/Desktop/biggerFile.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/sh | |
names=([0]="Demo1" [1]="Demo2") | |
urls=([0]="http://www.baidu.com/Demo1.ipa" [1]="http://www.baidu.com/Demo2.ipa") | |
rm -f ./1.txt | |
RES="" | |
function loop() | |
{ |
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/sh | |
for i in `find . \( -path '*/Library' -o -path '*/Pods' \) -a -prune -o -name '*.jpg' -o -name '*.png' -print`; do | |
file=`basename -s .jpg "$i" | xargs basename -s .png | xargs basename -s @2x` | |
result=`ag -i "$file"` | |
if [ -z "$result" ]; then | |
echo "$i" | |
# 如果需要,可以直接执行删除: | |
# rm "$i" | |
fi |
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/sh | |
git add . && git ci -m merge && git pm |
OlderNewer