Skip to content

Instantly share code, notes, and snippets.

@sfss5362
sfss5362 / WorkflowPaymentTestUT.java
Created September 27, 2012 17:25 — forked from henryyan/WorkflowPaymentTestUT.java
WorkflowPaymentTestUT
/**
* 测试收费/缴费流程
*
* @author HenryYan
*
*/
public class WorkflowPaymentTestUT extends BaseWorkflowTest {
private static String businessKey = "1";
private String processDefinitionKey = "payment";
@sfss5362
sfss5362 / LeaveWorkflowTestUT.java
Created September 27, 2012 17:25 — forked from henryyan/LeaveWorkflowTestUT.java
LeaveWorkflowTestUT
/**
* 请假流程测试
*
* @author HenryYan
*
*/
public class LeaveWorkflowTestUT extends BaseWorkflowTest {
@Autowired
LeaveWorkflowService workflowService;
@sfss5362
sfss5362 / PrestoJDBC.java
Created June 21, 2018 09:49 — forked from nagataka/PrestoJDBC.java
Connect to Presto on EMR via JDBC
import java.net.URI;
import java.net.URISyntaxException;
import java.sql.*;
public class PrestoJDBC {
// JDBC driver name and database URL
static final String JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver";
//static final String JDBC_DRIVER = "com.teradata.presto.jdbc42.Driver";
static final String DB_URL = "jdbc:presto://ec2-xx-xx-xxx-xxx.ap-northeast-1.compute.amazonaws.com:8889/hive/default";
@sfss5362
sfss5362 / RequestAndResponseLoggingFilter.java
Created July 10, 2018 09:23 — forked from int128/RequestAndResponseLoggingFilter.java
Spring Web filter for logging request and response
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.util.ContentCachingRequestWrapper;
import org.springframework.web.util.ContentCachingResponseWrapper;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
@sfss5362
sfss5362 / How-to-increase-VM-diskspace.md
Created April 3, 2023 07:28 — forked from hideojoho/How-to-increase-VM-diskspace.md
How to increase a VM's disk space

How to increase a VM's disk space

Environments

  • Vagrant
  • Virtualbox
  • CentOS 7

Note

The following steps are based on a Vagrant VM box which does NOT use LVM for a root partition, which seems to be the case for the official CentOS box.