Skip to content

Instantly share code, notes, and snippets.

Avatar
💪
Focusing

godcheese godcheese

💪
Focusing
View GitHub Profile
View logback-spring.xml
<!-- /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
@godcheese
godcheese / dbseed.cmd
Created Aug 19, 2017
MYSQL数据库填充脚本
View dbseed.cmd
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"
@godcheese
godcheese / migrate.cmd
Last active Aug 19, 2017
MYSQL数据库迁移脚本
View migrate.cmd
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"
@godcheese
godcheese / dateFormat.js
Last active Jul 15, 2017
JavaScript 时间戳格式化函数
View dateFormat.js
/**
* 和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) {
@godcheese
godcheese / git-push.sh
Last active Jun 29, 2017
Linux platform bash file be used to git push code
View git-push.sh
#!/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"
You can’t perform that action at this time.