function import_gzip_to_mysql {
read "gzipfilename?gzip filename [~/Development/database.gz]: "
gzipfilename=${gzipfilename:-~/Development/database.gz}
read "database?Target database: "
pv $gzipfilename | gunzip | mysql -u root --password=root $database
}
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
-- Upload to https://chart-studio.plot.ly/create | |
SELECT | |
`date`, | |
`amount` / `pageviews` AS `queries_per_page` | |
FROM | |
`log_queries`; | |
SELECT | |
`date`, | |
AVG(`amount` / `pageviews`) AS `queries_per_page` |
This is Ardziej's solution:
$.AdminLTESidebarTweak = {};
$.AdminLTESidebarTweak.options = {
EnableRemember: true,
NoTransitionAfterReload: false
//Removes the transition after page reload.