Category: Web Development
-
Truncate a WordPress Database To X-Number of Posts
I regularly work with huge MySQL database files (10G-100G) so making copies and importing them locally for use in VVV…
-
Easy Automatic Facebook Share Counts (Fully Javascript)
Drop this little gem in your site’s header: [javascript] <script> function numberFormat(x) { return x.toString().replace(/B(?=(d{3})+(?!d))/g, ‘,’); } jQuery(document).ready(function($){ $(‘.trigger_facebook_count’).each(function(){ var…
-
Web Server iptables Script
Here is an iptables script to set up a solid firewall on a CentOS web server. Remember to change the…