Skip to content

Instantly share code, notes, and snippets.

View adityasatrio's full-sized avatar
👻
I may be slow to respond.

Aditya satrio nugroho adityasatrio

👻
I may be slow to respond.
View GitHub Profile
@adityasatrio
adityasatrio / history link.txt
Created May 28, 2015 02:28
rod johnson history
@adityasatrio
adityasatrio / jax-rs.note.txt
Last active August 29, 2015 14:22
Restful webservice
JANGAN LUPA HATEOAS
http://www.mkyong.com/tutorials/jax-rs-tutorials/
http://www.dreamsyssoft.com/blog/blog.php?/archives/7-Simple-REST-Web-Service-in-Java-with-Spring-and-CXF.html
http://cxf.apache.org/docs/jax-rs-basics.html
http://cxf.apache.org/docs/jax-rs-basics.html
http://cxf.apache.org/docs/jax-rs.html
http://java.dzone.com/articles/rest-web-service-using-cxf
@adityasatrio
adityasatrio / catatan
Last active August 29, 2015 14:22
MULTI DATA SOURCE
http://docs.oracle.com/javaee/5/tutorial/doc/bnciy.html#bnciz
http://java.dzone.com/articles/xa-transactions-2-phase-commit
http://www.byteslounge.com/tutorials/spring-jta-multiple-resource-transactions-in-tomcat-with-atomikos-example
http://www.javacodegeeks.com/2013/07/spring-jta-multiple-resource-transactions-in-tomcat-with-atomikos-example.html
http://www.mastertheboss.com/jboss-server/jboss-configuration/configuring-transactions-jta-using-jboss-as7-wildfly
http://www.javacodegeeks.com/2014/11/tomcat-wildfly-configuring-database-connectivity.html
@adityasatrio
adityasatrio / hateoas
Last active August 29, 2015 14:22
HATEOAS
http://www.slideshare.net/trilancer/why-hateoas-1547275
http://martinfowler.com/articles/richardsonMaturityModel.html
http://blog.zenika.com/index.php?post/2012/06/13/HATEOAS-with-Spring-MVC-REST
http://java.dzone.com/articles/building-hateoas-hypermedia
http://corsoftlimited.blogspot.co.uk/2015/01/building-hateoas-hypermedia-restful.html
https://gist.github.com/hjr3/2289546
@adityasatrio
adityasatrio / note1.txt
Last active August 29, 2015 14:23
Wildfly step to beginner
https://wwu-pi.github.io/tutorials/lectures/eai/010_tutorial_jboss_setup.html
https://github.com/wildfly/quickstart#use-jboss-developer-studio-or-eclipse-to-run-the-quickstarts
https://github.com/wildfly/quickstart#start-the-jboss-wildfly-server
http://giordanomaestro.blogspot.com/2015/02/install-jdbc-driver-on-wildfly.html
http://blog.squins.com/2014/12/adding-a-mysql-jndi-datasource-to-jboss-wildfly-via-cli/
@adityasatrio
adityasatrio / MySqlBackup.bat
Created July 1, 2015 04:02
Mysql Backup Script For Windows
@echo off
set dbUser=root
set dbPassword=password
set backupDir="F:\AdityaSatrioNugroho\testbackupDb-bat\"
set mysqldump="C:\xampp\mysql\bin\mysqldump.exe"
set mysqlDataDir="C:\xampp\mysql\data"
set zip="C:\Program Files\7-Zip\7z.exe"
:: get date
@adityasatrio
adityasatrio / getdate.cmd
Created July 1, 2015 04:43
Mysql Backup Script For Windows | source from : http://goo.gl/fl7zLs
@ECHO off
SETLOCAL
IF [%1]==[] goto s_start
ECHO GETDATE.cmd
ECHO Returns the date independent of regional settings
ECHO Creates the environment variables %v_year% %v_month% %v_day%
ECHO.
ECHO SYNTAX
ECHO GETDATE
@adityasatrio
adityasatrio / Resources for JAVA Interview
Last active August 29, 2015 14:26
Resources for JAVA Interview
https://gist.github.com/Nijjwal/4d4614f561e3e18b0f9a - java collection interview
https://gist.github.com/struts2spring/7694820 - java_interview_question1.md
https://gist.github.com/struts2spring/7687583 - Multi-Threading_interviewQuestion.txt
https://gist.github.com/pankaj2210/daadbe2515ad2e3d6cc3 Useful Resources for Java Interviews
http://tutorials.jenkov.com/java-collections/hashcode-equals.html
http://www.javaworld.com/article/2074996/hashcode-and-equals-method-in-java-object---a-pragmatic-concept.html
http://javarevisited.blogspot.com/2013/08/10-equals-and-hashcode-interview.html
@adityasatrio
adityasatrio / eclipse-tools.txt
Created September 17, 2015 03:56
Tools eclipse for development
http://marketplace.eclipse.org/content/findbugs-eclipse-plugin/metrics
http://marketplace.eclipse.org/content/eclemma-java-code-coverage/metrics
http://eclipse-cs.sourceforge.net/#!/
@adityasatrio
adityasatrio / PasswordUtils.java
Created August 19, 2016 08:03 — forked from ToastShaman/PasswordUtils.java
A utility class for hashing passwords using PBKDF2 with BouncyCastle.
package com.zuhlke.lsapi;
import org.bouncycastle.crypto.PBEParametersGenerator;
import org.bouncycastle.crypto.digests.SHA3Digest;
import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator;
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.crypto.prng.DigestRandomGenerator;
import java.util.Base64;