I hereby claim:
- I am frederickding on github.
- I am frederickding (https://keybase.io/frederickding) on keybase.
- I have a public key whose fingerprint is 2A74 A27B EE53 6E67 0A2C 4828 1700 F2A4 C1FA 90F0
To claim this, I am signing this object:
<?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 | |
* |
javascript:jQuery("#mw-sopaOverlay").hide();jQuery("#content, #mw-page-base, #mw-head-base, #mw-head, #mw-panel, #footer").show(); |
/** | |
* 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 |
#!/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:]'` |
<?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 |
#!/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" |
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"; |
{ | |
{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. |
I hereby claim:
To claim this, I am signing this object:
Date: Thursday, December 4, 2014 EST | |
Start time: 4:00 pm | |
Duration: Unknown | |
Building(s) Affected: Entire Campus | |
Service(s) Affected: ALL |