Skip to content

Instantly share code, notes, and snippets.

@sfss5362
sfss5362 / 附件是错误demo
Created August 30, 2012 03:14
NutzDao 使用问题,表中已经有数据,不能添加
错误例子 myeclipse 8.5 ;sql2000
http://pan.baidu.com/share/link?shareid=10172&uk=554011874
----------------
@Test
public void test00()
{
Trans.exec(new Atom()
{
@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;
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.datadict.common.comdev.com/">
<soapenv:Header/>
<soapenv:Body>
<ser:DatadictSearch>
<!--Optional:-->
<!--Optional:-->
<info><advance>(BEStaffPayPrj.objId='80ad06b472794d30be34c3c8f9e277b2')</advance><beaPathNotEnabled>1</beaPathNotEnabled><className>BEStaffPayPrj</className><isSimpleRela>1</isSimpleRela><isUnionSearch>1</isUnionSearch></info></ser:DatadictSearch>
</soapenv:Body>
# filename: httpd-vhosts.conf
<Directory ../vhosts>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *
wget http://mirrors.linuxeye.com/oneinstack.tar.gz
tar xzf oneinstack.tar.gz
cd oneinstack
./shadowsocks.sh install
@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.