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/edit.module b/edit.module | |
index d126f40..bc5de1a 100644 | |
--- a/edit.module | |
+++ b/edit.module | |
@@ -112,11 +112,32 @@ function edit_library() { | |
$wysiwyg_module = variable_get(EDIT_WYSIWYG_VARIABLE, EDIT_WYSIWYG_DEFAULT); | |
$path = drupal_get_path('module', 'edit'); | |
+ | |
+ $libraries['edit.createjs'] = array( |
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
TABLENODATA="%search% %cache% xmlsitemap% droptor_memory flood history sessions watchdog" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<config> | |
<!-- Sources --> | |
<sources ignoredDirs="CVS:.svn"> | |
<source name="desktop" scanPath="/Users/wimleers/Desktop/watch" /> | |
</sources> | |
<!-- Servers --> | |
<servers> | |
<server name="origin pull cdn" transporter="symlink_or_copy"> |
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
Options +FollowSymLinks -MultiViews | |
RewriteEngine On | |
SetEnvIf User-Agent ^Amazon Cloudfront$ cdn | |
Order Deny,Allow | |
Deny from all | |
Allow from env=cdn |
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
"""pathscanner.py Scans paths and stores them in a sqlite3 database | |
You can use PathScanner to detect changes in a directory structure. For | |
efficiency, only creations, deletions and modifications are detected, not | |
moves. | |
Modified files are detected by looking at the mtime. | |
Instructions: | |
- Use initial_scan() to build the initial database. |
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
#!/usr/bin/env python | |
# Calculates the size of the PHP codebase of all sites. | |
import os | |
import optparse | |
import subprocess | |
def calculate(http_root_dir): | |
sites = list_sites(http_root_dir) |
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 code/arbitrator.py code/arbitrator.py | |
index a56cd43..071c913 100644 | |
--- code/arbitrator.py | |
+++ code/arbitrator.py | |
@@ -247,6 +247,7 @@ | |
# Create connection to synced files DB. | |
self.dbcon = sqlite3.connect(SYNCED_FILES_DB) | |
+ self.dbcon.text_factory = str | |
self.dbcur = self.dbcon.cursor() |
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
# Delete all log files older than 100 days that are not Episodes log files. | |
find /data/logs/apache -not \( -name "*episodes*" \) -mtime +100 -exec /bin/rm -f {} \; |
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
mining association rules complete, # association rules: 166 | |
( | |
{episode:css(0), ua:WinXP:Firefox(60)} => {duration:slow(16)} (conf=0.280632) | |
{episode:css(0), ua:WinXP:Firefox(60), ua:WinXP:Firefox:3(61)} => {duration:slow(16)} (conf=0.290043) | |
{episode:css(0), ua:WinXP:Firefox:3(61)} => {duration:slow(16)} (conf=0.290043) | |
{episode:pageready(39)} => {duration:slow(16)} (conf=0.398305) | |
{location:AS(3), episode:css(0)} => {duration:slow(16)} (conf=0.216981) | |
{location:AS(3), episode:pageready(39)} => {duration:slow(16)} (conf=0.639344) | |
{location:AS(3), episode:totaltime(40)} => {duration:slow(16)} (conf=0.639344) | |
{location:AS(3), ua:WinXP:IE(8), episode:frontend(19)} => {duration:slow(16)} (conf=0.468927) |
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
#include <stdio.h> | |
#define uint unsigned int | |
#define TTW_NUM_GRANULARITIES 5 | |
class Weird { | |
public: | |
Weird() { | |
this->lastUpdate = 0; | |
for (int g = 0; g < TTW_NUM_GRANULARITIES; g++) |