Skip to content

Instantly share code, notes, and snippets.

View francistm's full-sized avatar
🤒
Just another boring day

Francis Zhou francistm

🤒
Just another boring day
View GitHub Profile
@francistm
francistm / .gitignore
Created August 15, 2012 13:24
51Hei SCM C Libs
.o
.swp
@francistm
francistm / pre-commit
Created December 21, 2014 19:00
Git pre-commit hook
#!/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
@francistm
francistm / Gemfile
Last active October 19, 2015 08:01
yiichina.com 自动签到脚本
source 'https://rubygems.org/'
gem 'httparty', '~> 0.13.7'
gem 'nokogiri', '~> 1.6.6.2'
@francistm
francistm / README.md
Last active October 2, 2018 01:55
Kafka Node Cluster Docker Compose
@francistm
francistm / README.md
Last active October 28, 2018 03:52
MySQL 5.7 zip Windows Install

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 / no-av1-video.user.js
Last active July 10, 2022 09:50
An userscript to disable AV1 video decodec on youtube
// ==UserScript==
// @name No AV1 Video on Youtube
// @version 1.1
// @description Disable AV1 video decodec on youtube, inspired by chrome extension https://github.com/Shimmermare/NotYetAV1
// @author You
// @match *://*.youtube.com/*
// @match *://*.youtube-nocookie.com/*
// @match *://*.youtu.be/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @downloadURL https://gist.github.com/francistm/4e58e1b7ea81f6d7f2952661bd127bb6/raw/no-av1-video.user.js