Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
| private SubscribableChannel createInputChannel(String inputChannelName) { | |
| PublishSubscribeChannel channel = new PublishSubscribeChannel(); | |
| channel.setBeanName(inputChannelName); | |
| channel.setBeanFactory(applicationContext); | |
| //channel.setApplySequence(true); | |
| ((ConfigurableApplicationContext)applicationContext).getBeanFactory().registerSingleton(inputChannelName, channel); | |
| return channel; | |
| } |
| @Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS) | |
| @Service | |
| public class PubSubListener implements DisposableBean, InitializingBean, | |
| ApplicationContextAware { | |
| Logger log = LoggerFactory.getLogger(this.getClass()); | |
| private ApplicationContext ctx; | |
| private String inputChannelName; | |
| private QueueChannel queue; |
| /// GENERAL METHODS FOR OAUTH'ING | |
| /// using the Apache Oltu library | |
| /// https://cwiki.apache.org/confluence/display/OLTU/Index | |
| public String getAuthUrl() { | |
| OAuthClientRequest request = null; | |
| try { | |
| request = OAuthClientRequest | |
| .authorizationLocation("https://www.hackerschool.com/oauth/authorize") |
| allprojects { | |
| // Marker Task to enable findbugs. | |
| task findbugs( | |
| group: "Verification", | |
| description: """Marker task to enabled findbugs. Findbugs is by default | |
| disabled. E.g. ( ./gradlew findbugs build )""" | |
| ) | |
| } | |
| subprojects { |
Getting started:
Related tutorials:
| // see build.gradle for imports | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import ch.qos.logback.classic.LoggerContext; | |
| import ch.qos.logback.core.util.StatusPrinter; | |
| ... | |
| public abstract class Utilities { | |
| public static final Logger logger = LoggerFactory.getLogger( "AnyUniqueStringHere" ); | |
| ... | |
| public static void printLoggerState() { |
| #!/bin/sh | |
| # deploy.sh | |
| N="`readlink \"$1\"`" | |
| mv -T "$1.stage" "$1" | |
| ln -s "$N" "$1.stage" | |
| rm -rf "$N" | |
| cp -aH "$1" "$N" |
| # creat a tag (more infos at: http://git-scm.com/book/de/ch2-12.html) | |
| git tag -a 1.0.0 -m 'Version 1.0.0' | |
| git push origin 1.0.0 | |
| git tag -a 1.0.0.alpha1 -m 'Version 1.0.0 alpha1' | |
| git push origin 1.0.0.alpha1 | |
| # delete a tag | |
| git tag -d 1.0.0 | |
| git push origin :refs/tags/1.0.0 |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/