my.cnf
[mysqld]
general_log_file = /var/log/mysql/general.log
general_log=1
log-slow-queries = /var/log/mysql/slow_query.log
long_query_time = 0.5
curl -b "PHPSESSID=abcdefg" -i -s http://localhost/ | head -n 20 |
var pureArray = Array.apply(null, $( "#table tr" )); |
ls *.png | xargs -I FILE convert \ | |
FILE \ | |
-thumbnail '46x32>' \ | |
-gravity northwest \ | |
-extent 46x32 \ | |
s_FILE |
<?php | |
ini_set('display_errors', 1); | |
set_error_handler(function ($errorNo, $errorMessage, $errorFile, $errorLine) { | |
throw new ErrorException($errorMessage, 0, $errorNo, $errorFile, $errorLine); | |
}); |
require 'date' | |
file = ARGV[0] == nil ? STDIN : open(ARGV[0]) | |
puts "ip\ta1\ta1\tdate\tmethod\tquery\tprotocol\trespond\tlength\treffer\tua\n" | |
while line = file.gets | |
line = line.gsub(/[\r\n ]$/, "") | |
len = line.length | |
inQuato = false | |
inCase = false | |
values = [] |
convert -resize 120x icon.png icons/[email protected] | |
convert -resize 180x icon.png icons/[email protected] | |
convert -resize 76x icon.png icons/icon-76.png | |
convert -resize 152x icon.png icons/[email protected] | |
convert -resize 29x icon.png icons/icon-29.png | |
convert -resize 58x icon.png icons/[email protected] | |
convert -resize 87x icon.png icons/[email protected] | |
convert -resize 80x icon.png icons/[email protected] | |
convert -resize 120x icon.png icons/[email protected] |
window.addEventListener('scroll', function(event) { | |
console.log(window.pageYOffset); | |
}, false); | |
window.addEventListener('DOMContentLoaded', function(event) { | |
}, false); |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
result := make(chan int) | |
go func() { |
Object.defineProperty(String.prototype, 'to_i', {get: function() { return parseInt(this); }}) | |
"100".to_i # => 100 |