Skip to content

Instantly share code, notes, and snippets.

View guotingchao's full-sized avatar
🇵🇰
⛽️

Guo ZiChun guotingchao

🇵🇰
⛽️
View GitHub Profile
@guotingchao
guotingchao / delete_github_workflow_run_logs.sh
Created June 30, 2023 20:08 — forked from gubatron/delete_github_workflow_run_logs.sh
Batch delete 30 Github Workflow Run Logs using the github command line tool
#
# This script uses the github command line tool
# to delete the last 30 logs from your repository's workflow runs
#
# Requirements
#
# gh - github command line (brew install gh)
# you will need a GH_TOKEN, create it here: https://github.com/settings/tokens
#
# once you've created the personal access token with permission to manage your workflows
@guotingchao
guotingchao / gist:5251178
Last active December 15, 2015 11:09 — forked from kejun/gist:3358036
ios/android兼容mousemove方法
;(function($){
$.support.touch = 'ontouchend' in document;
if (!$.support.touch) {
return;
}
var eventMap = {
click: 'touchend',
mousedown: 'touchstart',
@guotingchao
guotingchao / gist:5235589
Created March 25, 2013 08:10
Goole hosts setting
#UPDATE:2013-03-24 14:43
127.0.0.1 localhost
#SmartHosts START
#Google Services START
203.208.46.200 chatenabled.mail.google.com
203.208.46.200 static.googleusercontent.com
203.208.46.200 0.docs.google.com
@guotingchao
guotingchao / gist:5219372
Last active December 15, 2015 06:49
mongodb的坑
//Query, Insert, Update are worked, but CPU load very high in ReplSet mode!
//Explore the cause of the problem
//ACL would blocked all unauthorized network access.
//I found out the problem, it eat the CPU by /lib/mongodb/connection/connection_pool.js.
connection.on("connect", function(err, connection) {
// Add connection to list of open connections
_self.openConnections.push(connection);
// If the number of open connections is equal to the poolSize
if(_self.openConnections.length === _self.poolSize && _self._poolState !== 'disconnected') {
@guotingchao
guotingchao / jade4jURL configuration
Created March 21, 2013 08:04
jade4j servlet 环境使用方法ps:参照位日本哥们的写法。
def url = this.class.classLoader.getResource('web/model.jade')