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
#!/usr/bin/env bash | |
# Linux platform bash file | |
echo "正在添加文件..." | |
git add . | |
echo -n "正在提交备注...,请填写备注(可空):" | |
read remarks | |
if [ ! -n "$remarks" ];then | |
remarks="常规提交" | |
fi | |
git commit -m "$remarks" |
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
/** | |
* 和PHP一样的时间戳格式化函数 | |
* @param {string} format 格式 | |
* @param {int} timestamp 要格式化的时间 默认为当前时间 | |
* @return {string} 格式化的时间字符串 | |
*/ | |
function date(format, timestamp) { | |
var a, jsdate = ((timestamp) ? new Date(timestamp * 1000) : new Date()); | |
var pad = function (n, c) { | |
if ((n = n + "").length < c) { |
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
chcp 65001 | |
@REM Author:godcheese@qq.com | |
@REM Description:MYSQL数据库迁移脚本 | |
@REM Platform:Windows | |
@echo off | |
set "MYSQL_HOME=D:\dev\mysql\mysql5.7.14" | |
set "HOST=localhost" |
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
chcp 65001 | |
@REM Author:godcheese@qq.com | |
@REM Description:MYSQL数据库填充脚本 | |
@REM Platform:Windows | |
@echo off | |
set "MYSQL_HOME=D:\dev\mysql\mysql5.7.14" | |
set "HOST=localhost" |
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
<!-- /Volumes/office/dev/IdeaProjects/nimrod-backend/src/main/resources/logback-spring.xml --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<!-- | |
<pattern> | |
%d{yyyy-MM-dd HH:mm:ss} [%level] - %msg%n | |
Logger: %logger | |
Class: %class | |
File: %file | |
Caller: %caller |