Skip to content

Instantly share code, notes, and snippets.

View jbaruch's full-sized avatar
🎩
DevRel all the way

Baruch Sadogursky jbaruch

🎩
DevRel all the way
View GitHub Profile
@jbaruch
jbaruch / spring-batch-samples-mongodb.patch
Created April 29, 2010 21:18
spring-batch samples source code patched to work with mongo-db
Index: spring-batch-samples/src/main/resources/data-source-context.xml
===================================================================
--- spring-batch-samples/src/main/resources/data-source-context.xml (revision 4050)
+++ spring-batch-samples/src/main/resources/data-source-context.xml (revision )
@@ -28,6 +28,31 @@
<property name="dataSource" ref="dataSource" />
</bean>
+ <bean id="mongoInitializer" class="org.springframework.batch.mongo.config.MongoDbInitializer">
+ <property name="db" ref="db"/>
@Configuration
public class ConfigurationWithSupport {
@Autowired
private ConfigurationSupport configurationSupport;
@Bean
public SomeBean someBean() {
SomeFactoryBean someFactoryBean = new SomeFactoryBean();
//configure your factoryBean here
final akkaVersion = '1.0-RC1'
final akkaGroup = 'se.scalablesolutions.akka'
dependencies {
compile group: akkaGroup, name: 'akka', version: akkaVersion
compile group: akkaGroup, name: 'akka-actor', version: akkaVersion
compile group: akkaGroup, name: 'akka-stm', version: akkaVersion
compile group: akkaGroup, name: 'akka-typed-actor', version: akkaVersion
compile group: akkaGroup, name: 'akka-remote', version: akkaVersion
@jbaruch
jbaruch / osoPush.groovy
Created September 15, 2011 21:31
OSO push plugin for Artifactory
/*
* Copyright (C) 2011 JFrog Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jbaruch
jbaruch / j1mow
Created April 3, 2012 19:24
От сборки к релизу - как перестать беспокоиться и начать доверять процессу
Частое развертывание в разнообразные производственные среды увеличивает нагрузку на DevOps. Гарантировать, что приложение развернуто правильно, становится все
сложнее.
В ходе этого доклада будут рассмотрены некоторые распространенные ошибки в традиционной непрерывной интеграции, увеличивающие риск и объем ручной работы.
Эти ошибки приводят к проявлению человеческого фактора, заставляя DevOps нервничать перед нажатием кнопки «Deploy».
Далее мы продемонстрируем способы автоматизации, позволяющие преодолеть эти проблемы с помощью уже используемых популярных инструментов:
системы сборки (Maven, или Gradle), сервера непрерывной интеграции (Jenkins, Bamboo или TeamCity) и с помощью бинарного репозитория.
Вне зависимости от того, создаете ли вы программное обеспечение для облачных платформ или для собственной инфраструктуры, мы продемонстрируем,
class ThridPartyCoolApi {
enum Number {
one(1), two(2), three(3)
int value
Number(int value) {
this.value = value
}

Looking at slide 6: Reza, come on. How can you claim your Spring code example is relevant?! You can find this XML hell only in legacy projects, similar to those which use J2EE EJB 2.1.

That's OK comparing the code at slide 6 to EJB 2.1 deployment descriptor. Or to compare code at slide 8 to Spring Boot/Annotations/Groovy config. But what you do, comparing 6 to 8 is just cheating. It will probably work for you when preaching to people who never used or seen Spring in their life, but doesn't winning by FUD make your victory a bit bitter?

I mean, we (JFrog) are in a same kind of a bitter competition with Sonatype.

Keybase proof

I hereby claim:

  • I am jbaruch on github.
  • I am jbaruch (https://keybase.io/jbaruch) on keybase.
  • I have a public key whose fingerprint is 7F53 474E 184A 142F DF94 FCDC 6AC4 1131 A0DB 78AC

To claim this, I am signing this object:

package conference;
import java.util.HashSet;
import java.util.Set;
/**
* Created by Jeka on 07/10/2014.
*/
public class Speaker {
package conference;
import java.util.Date;
/**
* Created by Jeka on 07/10/2014.
*/
public class Talk {