All posts in 'Shortcuts'

On sourcecode formatting

04-Jul-16

Without any comment on which style is right, you can use GNU util expand / unexpand to replace tabs with spaces and vice versa. For example, you can use the following command to replace all tabs with spaces and the recommended 8 spaces width in all Java files through find . -name ‘*.java’ ! -type […]

Read the complete article »

Spring 4.2.x, Spring Boot and the Stomp broker relay

17-Nov-15

If you’re using a StompBrokerRelay on the MessageBrokerRegistry, be careful with your dependencies: If you’re using Spring Boot 1.2.x, you must have <dependency> <groupId>org.projectreactor</groupId> <artifactId>reactor-net</artifactId> </dependency> on the classpath, in case of Spring Boot 1.3.x, which depends on Spring 4.2 which depends on Reactor 2, it must be <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-net</artifactId> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> […]

Read the complete article »

Git snippets

22-Dec-11

These are a view things that i had looked up to solve some problems and i plan to update this post regularly… To push a new branch to remote git push origin new_branch To delete a remote branch git push origin :new_branch To push new tags git push –tags origin To delete a remote tag […]

Read the complete article »