How To Fix Incorrect Disk Space
/scripts/fixquotas /scripts/updatemysqlquota
1775 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Sasha http://nothing-less.net
/scripts/fixquotas /scripts/updatemysqlquota
pico /var/cpane/users/accountname
skipanalog=1 skipawstats=1 skipwebalizer=1
/scripts/runweblogs username /scripts/runlogsnow
pico /usr/local/cpanel/3rdparty/etc/php.ini
extension_dir = ./ ;
extension_dir = ;
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; extension="/usr/local/cpanel/3rdparty/etc/ixed/ixed.lin.4.3.10.pxp" ;;;;;;;;;;;;;;;;;;;;;;
cd /tmp df -i /tmp df -h /tmp
/etc/rc.d/init.d/chkservd stop /etc/rc.d/init.d/mysql stop
cd /var/lib/mysql
myisamchk -cs a*/*.MYI
myisamchk -r a*/*.MYI myisamchk -r b*/*.MYI myisamchk -r c*/*.MYI myisamchk -r d*/*.MYI myisamchk -r e*/*.MYI myisamchk -r f*/*.MYI myisamchk -r g*/*.MYI myisamchk -r h*/*.MYI myisamchk -r i*/*.MYI myisamchk -r j*/*.MYI myisamchk -r k*/*.MYI myisamchk -r l*/*.MYI myisamchk -r m*/*.MYI myisamchk -r n*/*.MYI myisamchk -r o*/*.MYI myisamchk -r p*/*.MYI myisamchk -r q*/*.MYI myisamchk -r r*/*.MYI myisamchk -r s*/*.MYI myisamchk -r t*/*.MYI myisamchk -r u*/*.MYI myisamchk -r v*/*.MYI myisamchk -r w*/*.MYI myisamchk -r x*/*.MYI myisamchk -r y*/*.MYI myisamchk -r z*/*.MYI
/etc/rc.d/init.d/chkservd start /etc/rc.d/init.d/mysql start
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Quick Cheat Sheet</title> <style type="text/css"> <!-- body{ background:#eee; color:#333; font: 11px Arial, sans-serif; } table { float:left; margin:5px; border:1px solid #ccc; } .heading{ background:#ddd; } --> </style> </head> <body> <table summary="Weblog IDs" cellpadding="5"> <tr class="heading"> <td><b>Full Weblog Name</b></td> <td><b>Short Name</b></td> <td><b>Weblog ID</b></td> </tr> {exp:query sql="SELECT weblog_id, blog_name, blog_title, blog_url FROM exp_weblogs ORDER BY blog_title"} <tr> <td>{blog_title}</td> <td>{blog_name}</td> <td>{weblog_id}</td> </tr> {/exp:query} </table> <table summary="Custom Field IDs" cellpadding="5"> <tr class="heading"> <td><b>Full Field Name</b></td> <td><b>Short Name</b></td> <td><b>Field Type</b></td> </tr> {exp:query sql="SELECT group_id, field_name, field_label, field_type FROM exp_weblog_fields ORDER BY field_name"} <tr> <td>{field_label}</td> <td>{field_name}</td> <td>{field_type}</td> </tr> {/exp:query}</table> <table summary="Category IDs" cellpadding="5"> <tr class="heading"> <td><b>Full Category Name</b></td> <td><b>Category ID</b></td> </tr> {exp:query sql="SELECT cat_name, cat_id, group_id FROM exp_categories ORDER BY group_id"} <tr> <td>{cat_name}</td> <td>{cat_id}</td> </tr> {/exp:query}</table> </body> </html>
{exp:query sql="SELECT weblog_id, blog_name, blog_title, blog_url FROM exp_weblogs WHERE weblog_id != '100' ORDER BY blog_title"} <li><a href="{blog_url}">{blog_title}</a></li> {/exp:query}
{exp:query sql="SELECT count(exp_category_posts.entry_id) AS count,exp_category_posts.cat_id, exp_categories.cat_name FROM exp_categories, exp_category_posts WHERE exp_category_posts.cat_id = exp_categories.cat_id GROUP BY exp_categories.cat_name"} <a href="{path=weblog/view}C{cat_id}/">{cat_name} </a> ({count}) {/exp:query}
{exp:weblog:categories weblog="weblog1"} <a href="{path=weblog/index}">{category_name}</a> {exp:query sql="SELECT count(exp_category_posts.entry_id) AS count FROM exp_category_posts WHERE exp_category_posts.cat_id = {category_id} "} ({count} entries) {/exp:query} {/exp:weblog:categories}
<ul> <MTArchiveList archive_type="Monthly"> <li><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a> [ <MTArchiveCount> ]</li> </MTArchiveList> </ul>
<ul> <MTEntries lastn="10"> <li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> [ <a href="<MTEntryLink archive_type="Category">"><MTEntryCategory ></a> ]</li> </MTEntries> </ul>
<ul> <MTCategories> <li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a> [ <MTCategoryCount> ]</li> </MTCategories> </ul>
<ul> {exp:weblog:related_entries weblog="caps" orderby="title" sort="asc"} <li><a href="{title_permalink="caps/view"}">{title}</a></li> {/exp:weblog:related_entries} </ul>
{exp:weblog:category_heading weblog="weblog1"}{category_name}{/exp:weblog:category_heading}