#Qmail spam prevention:
Start Qmail
/etc/init.d/qmail start
/etc/init.d/xinetd start
Stop Qmail
/etc/init.d/qmail stop
#Qmail spam prevention:
Start Qmail
/etc/init.d/qmail start
/etc/init.d/xinetd start
Stop Qmail
/etc/init.d/qmail stop
| <? | |
| /* works pretty well */ | |
| function the_excerpt_max_charlength($id=false, $charlength=55) { | |
| global $post; | |
| $old_post = $post; | |
| if ($id != $post->ID) { | |
| $post = get_page($id); | |
| } |
| <?php | |
| /** | |
| * @var Template_VariableAccessor $VAR | |
| * @var array $OPT | |
| * Stored in /usr/local/psa/admin/conf/templates/custom/domain/ | |
| */ | |
| ?> | |
| server { | |
| listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['defaultIp'] ? ' default_server' : '') . ($OPT['ssl'] ? ' ssl' : '') ?>; |
#enable nginx server-wide Gzipping
First, open /etc/nginx/nginx.conf
Then add the following lines inside the http{}
gzip on;
gzip_http_version 1.1;
| <? | |
| // Filter Hybrid Entry Titles | |
| add_filter( 'hybrid_entry_title', 'remove_links_from_headings' ); | |
| function remove_links_from_headings($title){ | |
| if ( is_single()) { | |
| // display H1 tag on single blog posts using the following markup | |
| return '<h1 class="page-title entry-title">' . get_the_title() . '</h1>'; | |
| } elseif( is_front_page() || is_page() ){ | |
| // destroy H1 tag on static home page and all single pages | |
| return ''; |
| #!/bin/bash | |
| ############################## | |
| # DEFAULT WORDPRESS AND PLUGIN INSTALL SCRIPT | |
| # | |
| # 2012-04-03 | |
| # 1.0 | |
| # TODO: PUT A YES/NO PROMPT BEFORE RUNNING SCRIPT | |
| #!!!!! EXITS UNLESS YOU MANUALLY COMMENT OUT THE LINE BELOW | |
| exit |
| <? | |
| class MyRoyalSliderRendererHelper { | |
| private $post; | |
| private $options; | |
| function __construct( $data, $options ) { | |
| $this->post = $data; | |
| $this->options = $options; | |
| } | |
| function array_test() { | |
| $var = array( |
PHP Script can be found in this article http://wpcopilot.net/git-auto-deployment/
Also see: http://joemaller.com/990/a-web-focused-git-workflow/
git config --global user.name "Server"
git config --global user.email "[email protected]"