var qs = document.location.search.replace(/(^\?)/,'').split("&").map(function(n){return n = n.split("="),this[n[0]] = decodeURIComponent(n[1]),this}.bind({}))[0];
これで
?name=hoge&gender=female
に対して
qs.name --> hoge
と値が取得できます。
var qs = document.location.search.replace(/(^\?)/,'').split("&").map(function(n){return n = n.split("="),this[n[0]] = decodeURIComponent(n[1]),this}.bind({}))[0];
$opts = array( // 'debug' => true, 'roots' => array( // Items volume array( ---- 中略 ---- 'statOwner' => 'True', ---- 中略 ---- ),
https://console.aws.amazon.com/s3/buckets/<バケット名>/<prefix>?showdeleted=true
mysql> create database mydb character set utf8; mysql> grant all on mydb.* to user identified by 'xxxxx'; $ mysql -u user -p Enter password: ERROR 1045 (28000): Access denied for user 'user '@'localhost' (using password: YES)
$ mysql -u user Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 30 Server version: 5.6.35 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show processlist; +----+-----------+-----------+------+---------+------+-------+------------------+ | Id | User | Host | db | Command | Time | State | Info | +----+-----------+-----------+------+---------+------+-------+------------------+ | 28 | user | localhost | NULL | Query | 0 | init | show processlist | +----+-----------+-----------+------+---------+------+-------+------------------+ 1 row in set (0.00 sec)
mysql> select user,host from user; +-----------+------------------+-------------------------------------------+ | user | host | password | +-----------+------------------+-------------------------------------------+ | user | % | *XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | | root | 127.0.0.1 | | | root | ::1 | | | | ip-xxx-xx-xx-xxx | | | root | ip-xxx-xx-xx-xxx | | | | localhost | | | root | localhost | | +-----------+------------------+-------------------------------------------+ mysql> select host from user where user=""; +------------------+ | host | +------------------+ | ip-xxx-xx-xx-xxx | | localhost | +------------------+ 2 rows in set (0.00 sec)
mysql> delete from user where user=""; Query OK, 2 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)
$ mysql -u user -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 30 Server version: 5.6.35 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
# lsof|grep del dhclient 2292 root txt REG 202,1 547784 402927 /sbin/dhclient (deleted)
# service network reload Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... done. [ OK ] # lsof|grep del