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
To create the tomcat ssl keystore | |
keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore %CATALINA_HOME%\conf\keystore | |
To export it as a certificate | |
keytool -export -keystore "%CATALINA_HOME%\conf\keystore" -alias tomcat -file "%CATALINA_HOME%\conf\tomcat.cer" | |
To import into the JRE cacerts | |
keytool -import -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -alias tomcat -file "%JAVA_HOME%\conf\tomcat.cer" |
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
<bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"> | |
<property name="locations"> | |
<list> | |
<value>classpath:foo.properties</value> | |
</list> | |
</property> | |
<property name="ignoreUnresolvablePlaceholders" value="true"/> | |
</bean> |
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
<!-- Used in the Jasig/Cas uniqueIdGenerators.xml file --> | |
<!-- http://static.springsource.org/spring/docs/3.1.1.RELEASE/spring-framework-reference/html/expressions.html --> | |
<bean id="ticketGrantingTicketUniqueIdGenerator" class="org.jasig.cas.util.DefaultUniqueTicketIdGenerator"> | |
<constructor-arg | |
index="0" | |
type="int" | |
value="50" /> | |
<constructor-arg | |
index="1" value="#{ T(java.net.InetAddress).getLocalHost().getHostName() }" /> | |
</bean> |
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://blog.springsource.org/2011/02/15/spring-3-1-m1-unified-property-management/ | |
// http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/core/env/ConfigurableEnvironment.html | |
private static ConfigurableApplicationContext ctx; | |
private static PropertySourcesPlaceholderConfigurer pspc; | |
@BeforeClass | |
public static void setUpBeforeClass () throws Exception { | |
pspc = new PropertySourcesPlaceholderConfigurer (); |
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://static.springsource.org/spring/docs/3.1.1.RELEASE/spring-framework-reference/html/expressions.html | |
local.host=www.localhost.com:8080 | |
local.host.encode= #{ T(java.net.URLEncoder).encode('${local.host}', 'UTF-8') } |
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://blog.testflightapp.com/post/1346521917/register-devices | |
http://stackoverflow.com/questions/1528768/adhoc-provisioning-whats-the-easiest-way-to-add-a-few-more-devices-to-an-exis | |
http://esrimobile.blogspot.pt/2012/12/on-my-previous-post-wrote-on-how-to.html | |
http://help.testflightapp.com/customer/portal/articles/494413 | |
http://stackoverflow.com/questions/12523240/error-upload-testflight-invalid-ipa-dsym-not-found |
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>com.electronicpanopticon</groupId> | |
<artifactId>foo</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
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
#!/usr/bin/env bash | |
# Written by William Ting for the following blog post: | |
# http://williamting.com/posts/2012/04/18/set-up-python-and-django-on-dreamhost/ | |
rcfile="${HOME}/.bashrc" | |
version="2.7.5" | |
setuptools_version="2.7" | |
tmp_dir="${HOME}/tmp-${RANDOM}" | |
if [[ ${#} == 0 ]]; then |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<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>com.electronicpanopticon.base</groupId> | |
<artifactId>base-lib</artifactId> | |
<version>1.0-SNAPSHOT</version> |