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 | |
# | |
# tomcat7 This shell script takes care of starting and stopping Tomcat | |
# | |
# chkconfig: - 80 20 | |
# | |
### BEGIN INIT INFO | |
# Provides: tomcat7 | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog |
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 environment variables here so they are available globally to all apps | |
# (and Terminal), including those launched via Spotlight. | |
# | |
# After editing this file run the following command from the terminal to update | |
# environment variables globally without needing to reboot. | |
# NOTE: You will still need to restart the relevant application (including | |
# Terminal) to pick up the changes! | |
# grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl | |
# | |
# See http://www.digitaledgesw.com/node/31 |
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
Netsh int tcp set global RSS=Disable | |
Netsh int tcp set global chimney=Disabled | |
Netsh int tcp set global autotuninglevel=Disabled | |
Netsh int tcp set global congestionprovider=None | |
Netsh int tcp set global ecncapability=Disabled | |
Netsh int ip set global taskoffload=disabled | |
Netsh int tcp set global timestamps=Disabled |
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
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans. | |
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. | |
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar | |
server.loader= | |
shared.loader= | |
tomcat.util.buf.StringCache.byte.enabled=true | |
http.port=8080 | |
shutdown.port=8005 |
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
var should = require('should'), | |
crypto = require('crypto'); | |
describe('Crypto Spike Tests', function () { | |
var password = new Buffer('test', 'utf8'); | |
var KDF = function(password, salt, iterations) { | |
var key = Buffer.concat([password, salt]); | |
for (var i = 0; i < iterations; i++) { | |
key = crypto.createHash("md5").update(key).digest(); | |
} |
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
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 |
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
paging.banner.placement=top | |
paging.banner.all_items_found= | |
paging.banner.some_items_found= | |
paging.banner.one_item_found= | |
paging.banner.no_items_found= | |
paging.banner.onepage= | |
paging.banner.first=<div class="pagination pagination-right"><ul><li class="disabled"><span>First</span></li>{0}<li><a href="{4}">Last</a></li></ul></div> | |
paging.banner.full=<div class="pagination pagination-right"><ul><li><a href="{1}">First</a></li>{0}<li><a href="{4}">Last</a></li></ul></div> | |
paging.banner.last=<div class="pagination pagination-right"><ul><li><a href="{1}">First</a></li>{0}<li class="disabled"><span>Last</span></li></ul></div> | |
paging.banner.page.link=<li><a href="{1}">{0}</a></li> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.devnull</groupId> | |
<artifactId>gmaven-sample</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> |
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
package org.devnull.zuul.web.config | |
import org.springframework.web.context.support.ServletContextResource | |
import javax.servlet.ServletContext | |
class JstlFunctions { | |
static String getApplicationVersion(ServletContext context) { | |
def mavenProps = new ServletContextResource(context, "/META-INF/maven/org.devnull/zuul-web/pom.properties") | |
if (mavenProps.exists()) { |
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.junit.AfterClass | |
import org.junit.BeforeClass | |
import org.mortbay.jetty.Server | |
import org.springframework.core.io.ClassPathResource | |
abstract class BaseHttpServerIntegrationTest { | |
static Server server | |
@BeforeClass | |
static void createServer() { |