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
$ aws cloudformation create-stack \ | |
--template-url=https://s3.amazonaws.com/path-to-your-json \ | |
--stack-name=super-cool-service \ | |
--parameters '[{"ParameterKey":"Environment", "ParameterValue":"prod"}, \ | |
{"ParameterKey":"ReleaseBranch", "ParameterValue":"master"}, \ | |
{"ParameterKey":"ReleaseVersion","ParameterValue":"1.0.0"}]' \ | |
--profile slice-prod |
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
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${DEVOUR_HOST} "/apache/hadoop/bin/hadoop fs -cat ${PATH_IN_HDFS}/data/*|gzip" | gzip -d >> ${OUTPUT_DIR}/${OUTPUT_TSV} |
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
find . -type f ! -name 'Video_Quiz' -print0|xargs -0 -J % pdftk % cat output united.pdf |
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
#install pdftk | |
#export LC_CTYPE=C # if you encounter "sed: RE error: illegal byte sequence" | |
pdftk original.pdf output uncompressed.pdf uncompress | |
sed -e "s/Download from Wow! eBook \<www.wowebook.com\>/ /g" < uncompressed.pdf > temp.pdf | |
pdftk temp.pdf output fixed.pdf compress | |
rm temp.pdf | |