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
def url = this.class.classLoader.getResource('web/model.jade') |
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
//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') { |
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
#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 |
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
;(function($){ | |
$.support.touch = 'ontouchend' in document; | |
if (!$.support.touch) { | |
return; | |
} | |
var eventMap = { | |
click: 'touchend', | |
mousedown: 'touchstart', |
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
# | |
# 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 |