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
system type : UBNT_E300 | |
machine : Unknown | |
processor : 0 | |
cpu model : Cavium Octeon III V0.2 FPU V0.0 | |
BogoMIPS : 2000.00 | |
wait instruction : yes | |
microsecond timers : yes | |
tlb_entries : 256 | |
extra interrupt vector : yes | |
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb] |
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
#!/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 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
HandBrake Nightly 20180507165526-801d3ed (2018050701) - 64bit | |
OS: Microsoft Windows NT 10.0.17666.0 - 64bit | |
CPU: Intel(R) Xeon(R) CPU E3-1245 v6 @ 3.70GHz | |
Ram: 16271 MB, | |
GPU Information: | |
Intel(R) HD Graphics P630 - 23.20.16.4973 | |
Screen: 3840x2160 | |
Temp Dir: C:\Users\Frederick\AppData\Local\Temp\ | |
Install Dir: C:\Program Files\HandBrake Nightly | |
Data Dir: C:\Users\Frederick\AppData\Roaming\HandBrake Team\HandBrake\1.2.0.0 |
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
--- qemu-dm-wrapper.bak 2014-07-18 16:49:42.000000000 -0400 | |
+++ qemu-dm-wrapper 2014-07-18 20:38:46.000000000 -0400 | |
@@ -97,6 +97,11 @@ | |
write_dm_pid(domid, os.getpid()) | |
os.dup2(1, 2) | |
+ | |
+ for i in range(len(qemu_args)): | |
+ if qemu_args[i].find('macaddr=') > 0: | |
+ qemu_args[i] = qemu_args[i].replace('rtl8139', 'e1000') |
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
{ | |
{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 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 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 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 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 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 | |
* |