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
#!/usr/bin/php | |
<?php | |
// Modify the following constants according to your needs. | |
define("BACKUP_PATH", "/var/backup/trac/"); // Backup directory. | |
define("SOURCE_PROJECT", "/var/www/trac/muchiii"); // Source Trac Environment | |
define("TARGET_PROJECT", "/var/www/trac/router"); // Target Trac Environment | |
define("REPLACE_FROM", array( // Replace search string in wiki content. | |
"muchiii.com", | |
)); | |
define("REPLACE_TO", array( // Replaced string in wiki content. |
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
import System; | |
import System.Windows.Forms; | |
import Fiddler; | |
// INTRODUCTION | |
// This is the FiddlerScript Rules file, which creates some of the menu commands and | |
// other features of Fiddler. You can edit this file to modify or add new commands. | |
// | |
// The original version of this file is named SampleRules.js and it is in the | |
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named |
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
# Make tmux like screen, using Ctrl+A | |
unbind C-b | |
set -g prefix ^A | |
bind a send-prefix | |
# General configuration. | |
# $ tmux show-options -g | |
set -g base-index 1 | |
set -g display-time 5000 | |
set -g repeat-time 1000 |
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
# General configuration. | |
# $ tmux show-options -g | |
set -g base-index 1 | |
set -g display-time 5000 | |
set -g repeat-time 1000 | |
set -g status-keys vi | |
set -g status-utf8 on | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-justify left |
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
YUI_config = { | |
logInclude : { | |
"ID3": true | |
} | |
}; | |
if (typeof console !== "undefined") { | |
console.log = function (m, t, s) { | |
s = s || null; | |
if (!s) { | |
return false; |
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
/** | |
* A convenience method to instantiate ID3. | |
* | |
* @method id3 | |
* @static | |
* @param attrs {Object} The attribute object. | |
* @param callback {Function} The callback function. | |
* @param args {Array} The arguments you need in callback function. | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="created" content="2011-12-08"> | |
<title>Y.io XDR using Flash</title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/cssreset/reset-min.css"> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/3.4.1/build/cssfonts/fonts-min.css"> | |
<link rel="stylesheet" href="/prototype.css"> | |
<script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script> |
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 | |
header("Access-Control-Allow-Origin: " . $_SERVER["HTTP_ORIGIN"]); | |
header("Access-Control-Allow-Methods: POST, GET"); | |
header("Access-Control-Max-Age: 1"); | |
header("Access-Control-Allow-Credentials: true"); | |
$cookie = (isset($_COOKIE["cookie"]) && $_COOKIE["cookie"] !== "") ? $_COOKIE["cookie"] : NULL; | |
if ( ! $cookie) | |
{ |
OlderNewer