Skip to content

Instantly share code, notes, and snippets.

🤒
Just another boring day

Francis Zhou francistm

🤒
Just another boring day
Block or report user

Report or block francistm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@francistm
francistm / README.md
Last active Oct 28, 2018
MySQL 5.7 zip Windows Install
View README.md

Install MySQL 5.7.x on Windows

  • Unzip zip files to <mysql_home>
  • Download my.ini to <mysql_home> and replace the <mysql_home> with absolute path, (\ should be replaced with /)
  • Run cmd with administrator privilege
    cd <path>\bin
    mysqld --defaults-file=<mysql_home>/my.ini --initialize-insecure
    mysqld --install-manual MySQL-5.7 --defaults-file=<mysql_home>/my.ini
    net start MySQL-5.7
    
@francistm
francistm / README.md
Last active Oct 2, 2018
Kafka Node Cluster Docker Compose
View README.md
@francistm
francistm / Gemfile
Last active Oct 19, 2015
yiichina.com 自动签到脚本
View Gemfile
source 'https://rubygems.org/'
gem 'httparty', '~> 0.13.7'
gem 'nokogiri', '~> 1.6.6.2'
@francistm
francistm / pre-commit
Created Dec 21, 2014
Git pre-commit hook
View pre-commit
#!/bin/sh
#
# 这个挂钩会从提交的文件中删除行末的空格,并且终止 "git commit" 。
# 只需要简单的重复上一次的 "git commit" 命令重新提交一下即可。
#
# 将此文件放入 .git/hooks/pre-commit,并且用 chmod +x 添加可执行权限即可。
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
You can’t perform that action at this time.