-
git status时中文文件名乱码
现象:
\344\275\240\345\245\275
执行以下命令即可:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "Usage: $0 -p <pid> [-n <thread number>]" | |
} | |
# args check | |
while getopts ":p:n:" arg; do | |
case "$arg" in | |
p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: "/", | |
async: false, | |
dataType: "json", | |
success: function() { | |
window.open("http://google.com", "_blank"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hello.world; | |
import joptsimple.internal.Strings; | |
import kafka.admin.AdminUtils; | |
import kafka.admin.RackAwareMode; | |
import kafka.utils.ZKStringSerializer$; | |
import kafka.utils.ZkUtils; | |
import org.I0Itec.zkclient.ZkClient; | |
import org.I0Itec.zkclient.ZkConnection; |