Udate /etc/hosts
or c:\windows\system32\drivers\etc\hosts
file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
# Delete prior revisions from a GitHub wiki so that only the most-recent | |
# version of the content is available. | |
# Clone the wiki. | |
git clone https://github.com/[user]/[repo].wiki.git | |
# Remove the .git folder. | |
rm -rf .git | |
# Reconstruct the local repo with only latest content |
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
/** | |
* MediaFormat | |
* format and return only needed pieces of media from their public sources | |
* Author: Trevor Clarke | |
*/ | |
function MediaFormat (){ | |
// http://www.youtube.com/embed/m5yCOSHeYn4 | |
var ytRegEx = /^(?:https?:\/\/)?(?:i\.|www\.|img\.)?(?:youtu\.be\/|youtube\.com\/|ytimg\.com\/)(?:embed\/|v\/|vi\/|vi_webp\/|watch\?v=|watch\?.+&v=)((\w|-){11})(?:\S+)?$/; | |
// http://vimeo.com/3116167, https://player.vimeo.com/video/50489180, http://vimeo.com/channels/3116167, http://vimeo.com/channels/staffpicks/113544877 | |
var vmRegEx = /https?:\/\/(?:vimeo\.com\/|player\.vimeo\.com\/)(?:video\/|(?:channels\/staffpicks\/|channels\/)|)((\w|-){7,9})/; |
Udate /etc/hosts
or c:\windows\system32\drivers\etc\hosts
file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
/* | |
* RC4 symmetric cipher encryption/decryption | |
* | |
* @license Public Domain | |
* @param string key - secret key for encryption/decryption | |
* @param string str - string to be encrypted/decrypted | |
* @return string | |
*/ | |
function rc4(key, str) { | |
var s = [], j = 0, x, res = ''; |