This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="wordpress" default="deploy"> | |
| <target name="deploy"> | |
| <propertyprompt propertyName="rsync.type" promptText="Deploy? (test or yes)" defaultValue="test" /> | |
| <if> | |
| <equals arg1="${rsync.type}" arg2="yes" /> | |
| <then> | |
| <exec command="rsync --exclude-from='rsync_exclude' -e 'ssh -p 333' --delete-after -razv . sshuser@host.com:/final/path" outputProperty="info" /> |
This file contains hidden or 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 | |
| class urlfinder { | |
| var $urls = array(); | |
| var $visited = array(); | |
| var $domain; | |
| public function get ($url, $domain = '') { | |
| if (in_array($url, $this->visited)) { |
This file contains hidden or 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
| # Ignore everything in the root except the "wp-content" directory. | |
| /* | |
| !.gitignore | |
| !wp-content/ | |
| !build.xml | |
| !build_rsync_exclude | |
| # Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | |
| wp-content/* | |
| !wp-content/plugins/ |
This file contains hidden or 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
| <project name="xxx" default="dist"> | |
| <target name="_init_wp_serialize"> | |
| <adhoc-task name="wp-serialize-clean"><![CDATA[ | |
| class Wp_Serialice_Update extends Task { | |
| private $file; | |
| function setFile($file) { | |
| $this->file = $file; | |
| } |
This file contains hidden or 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
| " Vundle instalatu lehengo | |
| " git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " let Vundle manage Vundle, required |
This file contains hidden or 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 list_hooked_functions($tag=false){ | |
| global $wp_filter; | |
| if ($tag) { | |
| $hook[$tag]=$wp_filter[$tag]; | |
| if (!is_array($hook[$tag])) { | |
| trigger_error("Nothing found for '$tag' hook", E_USER_WARNING); | |
| return; | |
| } | |
| } else { |
This file contains hidden or 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
| header("HTTP/1.0 404 Not Found - Archive Empty"); | |
| $wp_query->set_404(); | |
| require TEMPLATEPATH.'/404.php'; | |
| exit; |
NewerOlder