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
| #!/bin/sh | |
| usage() | |
| { | |
| echo -e "Usage: $0 -i <input folder path containing files to upload> -c <credentials of the server to upload to> -u <url to upload to>" \ | |
| "\nExample Usage: ./upload-files.sh -i /src/folder -u http://server.com/path -c user:password" 1>&2; exit 1; | |
| } | |
| while getopts i:u:c: option | |
| do | |
| case "${option}" | |
| in |
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
| #!/bin/sh | |
| usage() | |
| { | |
| echo -e "Usage: $0 -c <number of noisy copies per image> -s <source folder containing images> -p <image name pattern> -d <destination folder to keep noisy images>" \ | |
| "\nExample Usage: ./create-noise.sh -c 10 -s /home/satyadeep/Pictures/000 -p '*.jpg' -d /home/satyadeep/temp/tst" 1>&2; exit 1; | |
| } | |
| while getopts c:s:p:d: option | |
| do | |
| case "${option}" | |
| in |
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
| cd /opt/ | |
| yum -y install wget | |
| curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz -O | |
| tar xzf jdk-8u131-linux-x64.tar.gz | |
| cd /opt/jdk1.8.0_131/ | |
| alternatives --install /usr/bin/java java /opt/jdk1.8.0_131/bin/java 2 | |
| alternatives --config java | |
| alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_131/bin/jar 2 | |
| alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_131/bin/javac 2 | |
| alternatives --set jar /opt/jdk1.8.0_131/bin/jar |
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
| set -e | |
| yum -y update | |
| yum -y install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| git clone --depth 1 git://github.com/yasm/yasm.git | |
| cd yasm |
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
| import org.apache.felix.scr.annotations.*; | |
| import org.apache.sling.api.SlingHttpServletRequest; | |
| import org.apache.sling.servlets.post.Modification; | |
| import org.apache.sling.servlets.post.SlingPostProcessor; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; |
NewerOlder