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
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H) | |
FOR /F "tokens=1-4 DELIMS=: " %%F IN ('time /T') DO (set v_time=%%F%%G%%H) | |
set fname=%v_date%_%v_time%.sql | |
set mysqldump="C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump" | |
cd C:\database-backup | |
%mysqldump% -h192.168.1.101 -P3306 -uroot -p123456 test > test_%fname% | |
forfiles /p %~dp0 /s /m *.sql /d -7 /c "cmd /c del @path" |
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
docker run | |
-e PARAMS="--spring.datasource.url=jdbc:mysql://192.168.0.240:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=UTC | |
--server.port=8080 服务启动窗口 | |
--spring.datasource.username=root | |
--spring.datasource.password=123456 | |
--spring.datasource.driver-class-name=com.mysql.jdbc.Driver | |
--spring.mail.host=smtp.qq.com | |
--spring.mail.port=465 | |
--spring.mail.username=1505455703@qq.com | |
--spring.mail.from=cron@qq.com |
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.facepay.lovefamily.pay.utils; | |
/** | |
* Created by faliny on 2017/8/25. | |
*/ | |
import cn.hutool.core.date.DateUtil; | |
import cn.hutool.core.util.RandomUtil; | |
import com.alibaba.fastjson.JSONObject; | |
import org.apache.commons.codec.digest.DigestUtils; |
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
git log --author=fxb --since="3 day ago" --pretty="%s" |
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
import org.junit.runner.RunWith; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.junit4.SpringRunner; | |
@SpringBootTest | |
@RunWith(SpringRunner.class) | |
public abstract class AbstractIntegrationTest { | |
} |
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
call plug#begin() | |
Plug 'easymotion/vim-easymotion' | |
Plug 'sbdchd/neoformat' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'tpope/vim-surround' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'preservim/nerdtree' | |
call plug#end() |
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
{ | |
"inbounds": [ | |
{ | |
"port": 1080, | |
"protocol": "socks", | |
"sniffing": { | |
"enabled": true, | |
"destOverride": ["http", "tls"] | |
}, | |
"settings": { |
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
import java.util.*; | |
public class ShowMeBug { | |
public static void main(String[] args) { | |
int data[] = { 5, 4, 3, 2, 1 }; | |
bubbleSort(data); | |
System.out.println(Arrays.toString(data)); | |
} | |
public static void bubbleSort(int[] arr) { |
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-activate() { | |
export http_proxy='http://127.0.0.1:8118' | |
export https_proxy=$http_proxy | |
} | |
proxy-deactivate() { | |
unset http_proxy | |
unset https_proxy | |
} | |
alias pa='proxy-activate' | |
alias pd='proxy-deactivate' |
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
swagger: "2.0" | |
info: | |
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." | |
version: "1.0.0" | |
title: "Swagger Petstore" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "apiteam@swagger.io" | |
license: | |
name: "Apache 2.0" |