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
<target name="wordpress.upgrade"> | |
<property name="tmp" value="/tmp" /> | |
<property name="src" value="${tmp}/wordpress" /> | |
<delete dir="${src}" includeemptydirs="true" failonerror="true" /> | |
<exec dir="${tmp}" command="curl -s http://wordpress.org/latest.tar.gz | tar -xz" /> | |
<delete dir="wp-admin" includeemptydirs="true" failonerror="true" /> | |
<delete dir="wp-includes" includeemptydirs="true" failonerror="true" /> | |
<move file="wp-config.php" tofile="wp-config.php.bak" overwrite="true"/> |
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
<adhoc-task name="adhocFilehash"> | |
<![CDATA[ | |
class AdHocFileHash extends Task { | |
private $path; | |
private $propertyName; | |
function setPath($path) { | |
$this->path = $path; | |
} |
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
(defun relpath (file &optional skipinsert) | |
"Figure out the relative path from the current buffer to the specified file""" | |
(interactive "FPath: ") | |
(let* ( | |
(basePath | |
(file-name-directory | |
(expand-file-name | |
(buffer-file-name (current-buffer))))) | |
(targetPath | |
(expand-file-name 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
(defun arrange-frame (w h x y) | |
"Set the width, height, and x/y position of the current frame" | |
(let ((frame (selected-frame))) | |
(delete-other-windows) | |
(set-frame-position frame x y) | |
(set-frame-size frame w h))) | |
(arrange-frame 160 50 2 22) |