Skip to content

Instantly share code, notes, and snippets.

View folkengine's full-sized avatar
😈
Living in interesting times.

Christoph folkengine

😈
Living in interesting times.
View GitHub Profile
@folkengine
folkengine / tomcat.ssl.txt
Created March 29, 2012 12:23
TOMCAT SSL
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"
@folkengine
folkengine / cookie.rb
Created July 5, 2012 13:18
Cucumber / Watir Step Definition to Check for Cookie
@folkengine
folkengine / PropertyManualXML_3.1.xml
Created September 10, 2012 16:46 — forked from eugenp/PropertyManualXML_3.1.xml
Properties with Spring - Register Property manually in XML with Spring 3.1
<bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:foo.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
@folkengine
folkengine / gist:3781429
Created September 25, 2012 12:14
Spring EL Placeholder to get Host Name
<!-- 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>
@folkengine
folkengine / gist:3782391
Created September 25, 2012 14:48
Manual ConfigurableApplicationContext for unit tests
//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 ();
@folkengine
folkengine / gist:3813957
Created October 1, 2012 19:36
Spring EL Placeholder URLEncoding another Placeholder
# 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') }
@folkengine
folkengine / testflight_notes.txt
Created February 4, 2013 13:02
Provisioning Profile links
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
@folkengine
folkengine / pom.xml
Last active December 20, 2015 07:39
pom.xml
<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>
#!/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
@folkengine
folkengine / gist:7742398
Created December 1, 2013 23:42
Spring Maven Base Pom
<?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>