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
| // Create a trust manager that does not validate certificate chains | |
| TrustManager[] trustAllCerts = new TrustManager[] { | |
| new X509TrustManager() { | |
| public java.security.cert.X509Certificate[] getAcceptedIssuers() { | |
| return null; | |
| } | |
| public void checkClientTrusted( | |
| java.security.cert.X509Certificate[] certs, String authType) { | |
| } | |
| public void checkServerTrusted( |
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
| -server | |
| -Xms1g | |
| -Xmx3g | |
| -Xss16m | |
| -XX:MaxPermSize=350m | |
| -XX:+UseConcMarkSweepGC | |
| -XX:+CMSParallelRemarkEnabled | |
| -XX:ConcGCThreads=4 | |
| -XX:ReservedCodeCacheSize=225m | |
| -XX:+AlwaysPreTouch |
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
| -- |
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/bash | |
| ############################################################################### | |
| ## ## | |
| ## Build and package OpenSSL static libraries for OSX/iOS ## | |
| ## ## | |
| ## This script is in the public domain. ## | |
| ## Creator : Laurent Etiemble ## | |
| ## ## | |
| ############################################################################### |
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
| http://saltnlight5.blogspot.com/2012/08/a-better-java-shell-script-wrapper.html |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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.jmeter.control.LoopController; | |
| import org.apache.jmeter.engine.StandardJMeterEngine; | |
| import org.apache.jmeter.protocol.http.sampler.HTTPSampler; | |
| import org.apache.jmeter.testelement.TestElement; | |
| import org.apache.jmeter.testelement.TestPlan; | |
| import org.apache.jmeter.threads.SetupThreadGroup; | |
| import org.apache.jmeter.util.JMeterUtils; | |
| import org.apache.jorphan.collections.HashTree; | |
| public class JMeterCodeRunner { |
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
| javascript:(function (id,L,T,W,H,bgColor) { | |
| if (document.getElementById) { | |
| if (document.getElementById(id)) { document.body.removeChild(document.getElementById(id)); } | |
| var highest_index = 0; | |
| var elements = document.getElementsByTagName("*"); | |
| for (var i = 0; i < elements.length - 1; i++) { | |
| //console.log(elements[i].style.zIndex); | |
| if (parseInt(elements[i].style.zIndex) > highest_index) { | |
| highest_index = parseInt(elements[i].style.zIndex); |
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
| # **postinstall.sh** is a script executed after Debian/Ubuntu has been | |
| # installed and restarted. There is no user interaction so all commands must | |
| # be able to run in a non-interactive mode. | |
| # | |
| # If any package install time questions need to be set, you can use | |
| # `preeseed.cfg` to populate the settings. | |
| ### Setup Variables | |
| # The version of Ruby to be installed supporting the Chef and Puppet gems |
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
| # Apt-install various things necessary for Ruby, guest additions, | |
| # etc., and remove optional things to trim down the machine. | |
| apt-get -y update | |
| apt-get -y remove apparmor | |
| apt-get -y install linux-headers-$(uname -r) build-essential | |
| apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
| apt-get clean | |
| # Remove this file to avoid dhclient issues with networking | |
| rm -f /etc/udev/rules.d/70-persistent-net.rules |