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 java.util.Random; | |
| /** | |
| * Created by sandeep on 7/16/14. | |
| */ | |
| public class RandomTextGenerator { | |
| public static String generateText(int length, char[] permissibleCharacters) { | |
| Random rand = new Random(); |
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
| # References : http://raseshmori.wordpress.com/2012/09/23/install-hadoop-2-0-1-yarn-nextgen/ | |
| # | |
| # steps to install Hadoop 2.x release on single node cluster setup | |
| # Prerequisites: | |
| # Java 6 installed | |
| # 1. Download tarball and extract contents to say /home/sandeep/tools/hadoop/2.4.1 | |
| export USER=sandeep |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <script type="text/javascript"> | |
| alert("javascript is supported"); | |
| </script> | |
| <noscript> | |
| <style> |
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 | |
| rm -f response.html | |
| wget $1 -o response.html | |
| grep -qs "401 Unauthorized" response.html | |
| OUT=$? | |
| if [ $OUT -eq 0 ];then | |
| echo "$1 is up" | |
| exit 0 | |
| else |
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 "templates" | |
| import "nodes" | |
| Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" , "/root/voltdb/bin"] } | |
| package { 'ntp': | |
| ensure => '4.2.4p8-3.el6', | |
| } | |
| package { 'java-1.7.0-openjdk': |
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
| Option 1 | |
| -------- | |
| 1) Download the WSDL file. | |
| 2) Create a new Dynamic Web project in eclipse | |
| 3) Right click on WSDL file and choose Webservices --> Test With Web Services Explorer | |
| Option 2 | |
| -------- | |
| 1) Download SOAPUI - http://sourceforge.net/projects/soapui/?source=pdlp | |
| 2) Create a project using the WSDL url |
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
| curl -X POST -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction: \"https://.../clientLogin\"" -d @request.xml https://.../service.asmx |
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 java.io.BufferedOutputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.security.KeyManagementException; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.SecureRandom; | |
| import java.security.Security; | |
| import java.security.cert.CertificateException; | |
| import java.security.cert.X509Certificate; |
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
| # Based on http://www.statsvn.org/ | |
| # Versions of the project are 5,6,7 | |
| # seq would generate 5,6,7 | |
| for i in $(seq 5 7); do | |
| rm -rf report-Version-$i | |
| mkdir report-Version-$i | |
| cd Version-$i |
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
| hold off; | |
| close; | |
| N = 1000; | |
| X = 1:N; | |
| size(X) | |
| hold on; | |
| axis([1 50 1 50 ]); | |
| xlabel ("x"); |