Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / pom.xml
Last active December 14, 2015 15:38
Play with maven2 and version numbering automagic ...

To deploy call...

The artifact is deployed "staged" - meaning first to your local file system into a folder you declare to be maven repository, this folder is given as command line parameter to maven:

-Drelease-repository-path=h:/.homedir/Asynchronous-Maven-2-Repository

where h:/.homedir/Asynchronous-Maven-2-Repository is the path to your local

@573
573 / gist:6369756
Last active December 21, 2015 21:39
Steps for installing foundation. Hints: Use your own github.com user name etc. where appropriate :).
pushd /c/Users/daniel/Documents
git clone https://github.com/zurb/foundation.git adopt-foundation
cd adopt-foundation/
git remote rename origin foundation
echo REMINDER create the remote repo named foundation in your own github.com account NOW
git remote add origin [email protected]:573/foundation.git
git branch -m master source
ssh-add ~/.ssh/id_rsa
git push -u origin source
gem install zurb-foundation
@573
573 / gist:15e8613c8fcd9ac27a45
Created May 9, 2014 14:50
Special characters - input method (quoted from haskell-cafe)
Nick Rudnick <[email protected]>
25. Apr.
an Haskell
Nachricht ΓΌbersetzen
Deaktivieren fΓΌr: Englisch
Thanks for the hint =)
# -------------- In my case it was this location, change accordingly -----------
# I only show here the part of that file I changed
## [ v3_req ]
##
### Extensions to add to a certificate request
##
##basicConstraints = CA:FALSE
##keyUsage = nonRepudiation, digitalSignature, keyEncipherment
[ v3_req ]
@573
573 / gist:a1079dcbb648a25a83ae
Created October 1, 2014 14:52
Didnt know smth like that is valid...
// java class
...
@Rule public ExpectedException exc;
...
@Test
public void testLoggingOnXRule() throws IOException {
(exc = ExpectedException.none()).expect(org.drools.runtime.rule.ConsequenceException.class);
(exc = ExpectedException.none()).expectMessage(StringStartsWith.startsWith(MessageFormat.format("Exception executing consequence for rule {0} in defaultpkg: java.lang.NullPointerException", "\"X Rule\"")));
@573
573 / README.md
Last active August 29, 2015 14:13 — forked from aweijnitz/Vagrantfile

Reused that box description for proof-of-concept jenkins-in-a-box for M$-bound developers.

The ssh-call to ssh into the once enrolled box was (information per vagrant ssh-config):

$ ssh [email protected] -p 2200 -i /d/tools/vagrant-aweijnitz/.vagrant/machines/default/virtualbox/private_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no -o IdentitiesOnly=yes -o LogLevel=FATAL

Have to look more deeply on the set of commands vagrant understands, not to forget one of them vagrant reload on changes in the configuration.

On some occasions ssh-add ~/.vagrant.d/insecure_private_key can be useful.

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import com.google.inject.name.Names;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
get_db() {
if [ -z "$CABAL_SANDBOX_CONFIG" ]
then
db=""
else
db=$(sed -nr -e 's/^package-db: (.*)/\1/p' "$CABAL_SANDBOX_CONFIG")
if [ $? -ne 0 ]; then exit 1; fi
fi
}
db_cmd() (
@573
573 / launchMaven
Last active August 29, 2015 14:19 — forked from lfo/launchMaven
mvn clean install -Dmaven.surefire.debug=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,address=Maven,suspend=n
# In Netbeans Debug/attachDebugger with
# connector : SharedMemory
# Name : Maven
# Timeout : 10 000
@573
573 / hmindmap.tex
Last active August 29, 2015 14:20 — forked from epsilonhalbe/hmindmap.tex
% Author: Martin Heuschober
% License: CC-BY-4.0
% see https://creativecommons.org/licenses/by/4.0/
\documentclass{article}
\usepackage[paperwidth=55cm
,paperheight=45cm
,left=1cm
,right=1cm
,top=1cm