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
# enable the site | |
a2ensite example.com | |
# restart apache2 | |
service apache2 reload |
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
/* | |
Theme Name: Twenty Ten Horizontal Subnav | |
Theme URI: http://blog.mzx.mobi/adding-horizontal-subnav-to-the-twenty-ten-theme.html | |
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. | |
Author: the WordPress team, modified by bmcculley | |
Author URI: http://mzx.mobi | |
Version: 0.1 | |
Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style | |
Template: twentyten | |
*/ |
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
find ./ -type f -exec sed -i 's/apple/orange/g' {} \; |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME}.php -f | |
RewriteRule ^(.*)$ $1.php [NC,L] |
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
.navbar-brand, | |
.navbar-nav > li > a { | |
padding-top: 5px !important; | |
padding-bottom: 5px !important; | |
} | |
.navbar { | |
min-height: 30px !important; | |
} |
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
import sys, re | |
css = "" | |
saveFileName = "default.css" | |
flag = False; | |
for n, i in enumerate(sys.argv): | |
if n == 0: | |
pass | |
elif i == "-h": | |
print "Add CSS files space seperated to be combined and minified. Add -s followed by the name of the new CSS file." |
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
/* jsmin.c | |
2011-09-30 | |
Copyright (c) 2002 Douglas Crockford (www.crockford.com) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do |
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
# This module is a JSMinimizer | |
# It will take any file and strip away all | |
# comments, and whitespace characters. | |
# This has only been tested for JS scripts, | |
# all other file types have not been verified | |
# to work as expected. | |
# Author: MikeWest | |
# Needs to be updated so that spaces that need to exist aren't stripped away | |
# This will require the recognition of which tokens need to be separated from |
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
DELETE FROM `table` | |
WHERE id IN (SELECT * | |
FROM (SELECT id FROM `table` | |
GROUP BY column HAVING (COUNT(*) > 1) | |
) AS A | |
); |
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
<?php | |
function _isCurl() { | |
return function_exists('curl_version'); | |
} | |
if ( _isCurl() ) { | |
echo 'cURL is installed on this server :-)'; | |
} else { | |
echo 'You\'ll need cURL for this...'; |
OlderNewer