Skip to content

Instantly share code, notes, and snippets.

View helpermethod's full-sized avatar
⌨️
hacking

Oliver Weiler helpermethod

⌨️
hacking
View GitHub Profile
@helpermethod
helpermethod / README.md
Created May 16, 2017 10:57 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

<distributionManagement>
  <snapshotRepository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  </snapshotRepository>
  <repository>
    <id>ossrh</id>
    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  </repository>
@helpermethod
helpermethod / spring-boot-cloud.md
Last active June 5, 2017 10:08
Spring Boot und Spring Cloud

Spring Boot und Spring Cloud

Spring Boot

  • Was ist Spring Boot?
    • Abgrenzung zu Spring
    • Eigenschaften eine Spring Boot Anwendung
  • Schnelleinstieg in Spring Boot
    • Eine lauffähige Anwendung generieren mit Spring Initializr
  • Import des generierten Projekts
find -type f -name '*.iml' -exec rm {} \;
find -type d -name '.idea' -exec rm -rf {} \;
find -type d -name 'target' -exec rm -rf {} \;
@helpermethod
helpermethod / maven-offline.md
Last active June 16, 2017 16:14
Maven Offline Betrieb

Maven Offline Betrieb

  • $HOME/.m2/repository umbenennen
$ mv $HOME/.m2/repository{,.old}

In Projektordner dependency:go-offline Goal ausführen

@helpermethod
helpermethod / membrane-dsl.md
Last active June 28, 2017 13:47
Membrane Java 8 DSL

The Exchange DSL

Design considerations

General

For getting the raw, low-level representation.

Exchange|Request|Response get()

C-b M-1

@helpermethod
helpermethod / groovy-mockftp.md
Created August 7, 2017 14:02
A groovy kind of MockFtpServer
@Grab('org.mockftpserver:MockFtpServer:2.7.1')

import org.mockftpserver.fake.FakeFtpServer
import org.mockftpserver.fake.UserAccount
import org.mockftpserver.fake.filesystem.DirectoryEntry
import org.mockftpserver.fake.filesystem.UnixFakeFileSystem

new FakeFtpServer().with {
 serverControlPort = 9981
@helpermethod
helpermethod / cassandra-win.md
Created August 10, 2017 09:49
Cassandra Win

Cassandra Docker Container starten

$ docker run --name cassandra-local -d -p 9042:9042 cassandra:latest

Cassandra Docker Container mit cqlsh starten

$ docker run -it --link cassandra-local:cassandra --rm cassandra cqlsh cassandra

Keyspace anlegen

@helpermethod
helpermethod / proxies-groovy.md
Last active August 22, 2017 11:53
proxies.groovy
@Grapes([
    @Grab('org.membrane-soa:service-proxy-core:4.4.2'),
    @Grab('ch.qos.logback:logback-classic:1.2.3')
])
import com.predic8.membrane.core.HttpRouter
import com.predic8.membrane.core.config.Path
import com.predic8.membrane.core.interceptor.rewrite.RewriteInterceptor
import com.predic8.membrane.core.interceptor.rewrite.RewriteInterceptor.Mapping
import com.predic8.membrane.core.rules.AbstractServiceProxy.Target