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 -e | |
# /opt/scripts/svn-cat-tag-versions.sh | |
# @author: Nestor Urquiza | |
# @date: 20140319 | |
USAGE="Usage: `basename $0` <tag_base_url> <file_path> <version_from> <version_to>" | |
if [ $# -ne "4" ] | |
then | |
echo $USAGE |
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 -e | |
# nbsp2sp.sh | |
filePath=$1 | |
USAGE="Usage: `basename $0` <filePath>" | |
if [ $# -ne "1" ] | |
then | |
echo $USAGE |
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
git update-index --chmod=+x *.sh | |
git commit -m "setting execution bit" | |
git push |
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 org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
/** | |
* @author Nestor Urquiza | |
* @date 20140409 | |
* |
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 -e | |
# installGetHttpStatusCode.sh | |
# @author: Nestor Urquiza | |
# @date: 20140409 | |
USAGE="Usage: `basename $0` <baseInstallationPath>" | |
baseInstallationPath=$1 | |
if [ $# -ne "1" ] |
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
curl -O https://gist.githubusercontent.com/nestoru/10284218/raw/89a247253fe244ccde810a98c47070d71ae777ce/installGetHttpStatusCode.sh | |
chmod +x installGetHttpStatusCode.sh | |
#use your preferred directory for installation, in thos case /tmp | |
./installGetHttpStatusCode.sh /tmp | |
cd /tmp/http-test; java -cp ".:./httpcomponents-client-4.3.3/lib/*" GetHttpStatusCode https://github.com |
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 -e | |
# runInHosts.sh | |
# @author: Nestor Urquiza | |
# @created: 20130712 | |
USAGE="Usage: `basename $0` <clusterNodes[user@host space delimited list or a path to a file comntaining the list]> <command>" | |
if [ $# -ne "2" ]; then | |
echo $USAGE |
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
# pure command line | |
$ ./runInHosts.sh "[email protected] [email protected] [email protected] [email protected] [email protected]" date | |
[email protected]: Fri Jul 12 11:45:02 EDT 2013 | |
[email protected]: Fri Jul 12 11:45:02 EDT 2013 | |
[email protected]: Fri Jul 12 11:45:02 EDT 2013 | |
[email protected]: Fri Jul 12 11:45:02 EDT 2013 | |
[email protected]: Fri Jul 12 11:45:02 EDT 2013 | |
# using a file | |
$ cat hosts.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
echo yahoo.com > hosts | |
echo google.com >> hosts | |
for host in `cat hosts` do; ping $host; 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
# Change base_dir and job as needed | |
base_dir=/opt/talend | |
job=my_job | |
grep -o 'componentName="[^"]*' $base_dir/${job}/${job}/items/${job}/process/${job}*.item \ | |
| sed 's/componentName="//g' | sort | uniq |
OlderNewer