GRANT usage ON `database1`.* TO 'user'@'localhost' IDENTIFIED BY 'password';
GRANT insert,select ON `database1`.comments TO 'user'@'localhost';
FLUSH PRIVILEGES;
REVOKE ALL on *.* from 'user'@'%';
| 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 = [] |
| <?php | |
| ini_set('display_errors', 1); | |
| set_error_handler(function ($errorNo, $errorMessage, $errorFile, $errorLine) { | |
| throw new ErrorException($errorMessage, 0, $errorNo, $errorFile, $errorLine); | |
| }); |
| ls *.png | xargs -I FILE convert \ | |
| FILE \ | |
| -thumbnail '46x32>' \ | |
| -gravity northwest \ | |
| -extent 46x32 \ | |
| s_FILE |
| var pureArray = Array.apply(null, $( "#table tr" )); |
| curl -b "PHPSESSID=abcdefg" -i -s http://localhost/ | head -n 20 |
| cmake_minimum_required(VERSION 2.8.4) | |
| project(test1) | |
| FIND_PACKAGE( OpenCV REQUIRED ) | |
| set(SOURCE_FILES main.cpp) | |
| add_executable(main ${SOURCE_FILES}) |
<%==
sprintf(
f.date_select(
:open_day ,
:use_month_numbers => true,
:date_separator => '%s'
), '年', '月'); %>
| <?php | |
| function makePass($length = 8) { | |
| $base = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
| $str = ""; | |
| while($length--) { | |
| $str .= $base[mt_rand(0, strlen($base) - 1)]; | |
| } | |
| return $str; | |
| } | |
| var_dump(makePass(20)); |