- Author
baiju.m.mail AT gmail.com
- Version
0.3.2
Note
# Import mysql db from compressed archive and display progress | |
pv -f mysql-db.gz | zcat | mysql -u root -p db_name |
########################################################### | |
# Free memory on a running Linux system without rebooting # | |
########################################################### | |
#!/bin/sh | |
# sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" | |
# Flush file system buffers by executing | |
sync; |
baiju.m.mail AT gmail.com
0.3.2
Note
SELECT SUM(TABLE_ROWS), TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '{DB_NAME}' GROUP BY TABLE_NAME; |
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/default.css" media="all" /> |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
<?php | |
// -- For debugging enable XML Logging for specfic site_id | |
function ws_debug_xml_post() { | |
// Only capture XMLRPC requests. | |
if (XMLRPC_REQUEST) { | |
$logline = "XML POST: ".date('Y-m-d H:i:s')." ".str_repeat('-', 30)."\n"; |
server { | |
listen 80; | |
server_name fqdn.domain.com; | |
access_log /var/log/nginx/fqdn.domain.com-access.log; | |
gzip on; | |
gzip_static on; | |
gzip_http_version 1.1; |
server { | |
listen 80; | |
server_name fqdn.domain.com; | |
access_log /var/log/nginx/fqdn.domain.com-access.log; | |
gzip on; | |
gzip_static on; | |
gzip_http_version 1.1; |