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
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any | |
interesting article like yours. {It's|It is} pretty worth enough | |
for me. {In my opinion|Personally|In my view}, if | |
all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, | |
the {internet|net|web} will be {much more|a lot more} useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. | |
{Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. |
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
diff --git a/OpenVBX/helpers/mail_helper.php b/OpenVBX/helpers/mail_helper.php | |
index 9453556..50efff0 100644 | |
--- a/OpenVBX/helpers/mail_helper.php | |
+++ b/OpenVBX/helpers/mail_helper.php | |
@@ -30,13 +30,17 @@ function openvbx_mail($recipient, $subject, $template, $maildata = array()) | |
$from_email = "$from <do-not-reply@$domain>"; | |
} | |
- $headers = 'From: '.$from_email."\r\n"; | |
- $headers .= 'Reply-To: '.$from_email."\r\n"; |
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
#!/bin/bash | |
XZ_OPT=-9 | |
DATE=$(date +'%Y%m%d') | |
FILENAME="/"`hostname -f`"-$DATE.tar.xz" | |
printf "FULL FILESYSTEM BACKUP SCRIPT\n" | |
printf '===============================' | |
printf "\n" | |
printf "Current date: %s\n" "$DATE" | |
printf "Archive will be stored at: %s\n" "$FILENAME" |
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 | |
$input_file = '/path/to/wxr.wordpress.2013-07-16.xml'; | |
$file = simplexml_load_file($input_file); | |
$output = fopen($input_file . '.txt', 'w'); | |
// find all instances of <wp:post_type> | |
$matches = $file->xpath('//wp:post_type'); | |
foreach($matches as $match) { | |
// write out the contents |
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
#!/bin/bash | |
# Based on https://github.com/krobertson/xenserver-automater/blob/master/usr/sbin/xe-set-hostname | |
# Adapted by Frederick Ding | |
# Detect if xenstore-read is available | |
XENSTOREREAD=`which xenstore-read` | |
if [ -e $XENSTOREREAD ]; then | |
# Filter the domU's name to a lowercase alphanumeric hyphenated hostname | |
NAME=`xenstore-read name | sed -e 's/[^[:alnum:]|-]/-/g' | tr '[:upper:]' '[:lower:]'` |
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
/** | |
* ImageJ macro to convert DM3 digital micrograph files to TIF and PNG | |
* | |
* @author Frederick Ding | |
*/ | |
/* | |
* Option switches | |
* | |
* debug: when set to true, some variables will be outputted to the log |
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
javascript:jQuery("#mw-sopaOverlay").hide();jQuery("#content, #mw-page-base, #mw-head-base, #mw-head, #mw-panel, #footer").show(); |
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 | |
/** | |
* A benchmark script to compare the speeds of determining time differences using | |
* PHP and using MySQL. | |
* | |
* Copyright 2010 Frederick Ding<br /> | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at http://www.apache.org/licenses/LICENSE-2.0 | |
* |
NewerOlder