Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodrigo Ribeiro rodrik

View GitHub Profile
View WindowsSetup.cmd
choco install cmdermini -y
choco install git -y
choco install putty -y
choco install winscp -y
choco install awscli -y
choco install jdk11 -y
choco install jdk8 -y
choco install maven -y
choco install python -y
View HashCodeTest.java
package io.github.rodrik.commons;
import java.time.LocalDate;
import java.util.Arrays;
import org.apache.commons.lang3.builder.CompareToBuilder;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.junit.Test;
import org.junit.runner.RunWith;
View setup-ubuntu-windows.sh
#!/bin/bash
# Install Windows Subsystem for Linux
# Install Ubuntu from the Windows Store
# Install Hyper
# https://hyper.is/
# Edit the config
# Find the shell line and change it to shell: 'C:\\Windows\\System32\\bash.exe'
# Add Inconsolata to the fonts
@rodrik
rodrik / pom.xml
Created Mar 22, 2016
Sample pom.xml file to enable spring-boot on WAS 8.5.5 running jdk1.6
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.rodrik</groupId>
<artifactId>spring-boot-was</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<java.version>1.6</java.version>
</properties>
View gist:296f99e39c9d055d6a57
package br.com.gcargo.manager.web.controller.util;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
import com.lowagie.text.pdf.Barcode128;