View .ideavimrc
set hls
set ignorecase smartcase
set incsearch
set showmode
" minimum nr. of lines above and below cursor
set so=5
" enable vim-surround plugin
set surround
View bugn_Config.ini
; bug.n - tiling window management
; @version 9.0.0
Monitor_#1_aView_#2=3
View_#1_#1_layout_#1=2
View_#1_#1_layoutMFact=0.250000
Config_fontName=微软雅黑
Config_fontSize=10
View proxy.conf
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding 'gzip';
client_max_body_size 100m;
client_body_buffer_size 256k;
proxy_connect_timeout 60;
proxy_send_timeout 60;
View UTF8MB4ConnectionCustomizer.java
package com.vamdt.api.common
import com.mchange.v2.c3p0.AbstractConnectionCustomizer;
import java.sql.Connection;
import java.sql.Statement;
public class UTF8MB4ConnectionCustomizer extends AbstractConnectionCustomizer {
@Override
public void onAcquire(Connection c, String parentDataSourceIdentityToken) throws Exception {
View Cmder踩坑记录.md

Cmder踩坑记录

  1. 执行超过4个字符长的命令,按up或者down之后第一个字符没有消失。

    解决方案:

    找到cmder安装目录 cmder\vendor\ 修改clink.lua文件

    将如下代码

View cmder下git-for-windows乱码解决方案.md
  1. git status时中文文件名乱码

    现象:

    \344\275\240\345\245\275
    

    执行以下命令即可:

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "u14"
# config.vm.box_url = "http://mirrors.opencas.cn/ubuntu-vagrant/vagrant/trusty/20160323.1/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.hostname = "vamdt"
View SendMail.java
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import java.util.*;
public class SendMail {
View telnet_send_email.sh
telnet mail.host 25
ehlo mail.host #握手
mail from:<test@mail.host> #发送方
rcpt to: <testing@target.mail.host> #收件方
data #正文
TO: testing@target.mail.host
FROM: test@mail.host
SUBJECT: telnet test
test,aha
View run_jmeter.sh
#!/usr/bin/env bash
JMETER_PATH=/path/to/jmeter
JMETER_PLAN_DIR=/path/to/jmx
set -xe
cd $(dirname $0)
pwd
for file in $(ls $JMETER_PLAN_DIR); do