This file contains 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 | |
mkdir $1 | |
cd $1 | |
git clone ~/src/fazcore | |
mv fazcore $1 | |
cd $1 | |
git filter-branch --subdirectory-filter $2 --prune-empty -- --all | |
git remote remove origin | |
git remote add origin ssh://git@git.tecfem.de/opt/git/repository/$1.git |
This file contains 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 | |
PROJECTKEYS="PROJ1|PROJ2" | |
JIRABASEURL="http://jira.example.com/" | |
# Put here your tag names, branches or just revision hashes | |
FROMREV="release-1.0" | |
TOREV="origin/master" | |
# Unfortunately I didn't manage to get the variable $PORJECTKEYS replaced within gawk's gensub() |
This file contains 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
FROM tomcat:7-jre7 | |
MAINTAINER Paul Wellner Bou "<paul@wellnerbou.de>" | |
ENV SOLR_VERSION 4.7.2 | |
# ADD http://central.maven.org/maven2/org/apache/solr/solr/${SOLR_VERSION}/solr-${SOLR_VERSION}.war /usr/local/tomcat/webapps/solr.war | |
ADD solr-${SOLR_VERSION}/dist/solr-${SOLR_VERSION}.war /usr/local/tomcat/webapps/solr.war | |
ADD solr-home /opt/solr | |
ADD solr-${SOLR_VERSION}/dist/solrj-lib/slf4j-api* /usr/local/tomcat/lib/ |
by Sebastian Hoogenberk on April 9, 2015
For security reasons you might want to disable the #parse and the #include directives in Apache Velocity altogether, e.g. when users should be allowed to modify templates. The way to do this is via an event handler named IncludeEventHandler.
To disable #include and #parse, you first have to implement the IncludeEventHandler interface, and then you have to register your class in the Velocity configuration.
The class:
This file contains 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-get install aptitude | |
# Remove recommended packages in aptitude | |
echo 'aptitude ""; | |
aptitude::Keep-Unused-Pattern ""; | |
aptitude::Delete-Unused-Pattern ""; | |
APT ""; | |
APT::Install-Recommends "false";' > ~/.aptitude/config | |
# Latest Docker |
This file contains 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 | |
encoded=$1 | |
decoded="${1}.decoded.html" | |
php -r 'echo quoted_printable_decode(file_get_contents("'$encoded'"));' > $decoded |
This file contains 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
<!-- Put this snippet in your "Blog footer" via Ghost's "Code Injection" --> | |
<script> | |
// Your Disqus name | |
var disqusName = 'paulwellnerbou'; | |
// The element where to append the Disqus discussion container, for Ghost 0.11 and the casper theme this is '.post-content' | |
var elementToAppendDisqusContainer = '.post-content'; | |
var postContent = document.querySelector(elementToAppendDisqusContainer); | |
if(postContent !== null) { | |
var div = document.createElement('div'); | |
div.setAttribute('id', 'disqus_thread'); |
OlderNewer