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
--- paging.module 2009-01-23 23:53:18.000000000 +0000 | |
+++ paging.module 2010-08-30 21:26:41.081673004 +0100 | |
@@ -242,14 +242,63 @@ function _paging_nodeapi(&$node, &$node_ | |
$node->body = check_markup($node->pages[$page], $node->format, false); | |
$position = variable_get('paging_pager_widget_position', 'below'); | |
$node->paging = theme('pager', NULL, 1, $element); | |
+ | |
+ // Remove internal <!--paging_filter--> tag from final output. | |
+ $node->body = str_replace('<!--paging_filter-->', '', $node->body); | |
+ |
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
ffmpeg -i input.ogv -vcodec libx264 -vpre fast -crf 22 -threads 2 output.mp4 |
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
/* Timeline API pre 2.4.0 | |
* Copyright Massachusetts Institute of Technology | |
* and Contributors 2006-2009 ~ Some rights reserved | |
* Timeline is open source software and is licensed | |
* under the BSD license. | |
* http://www.simile-widgets.org/timeline/ | |
*/ | |
(function(){var Timeline,SimileAjax;var loadMe=function(){Timeline=window.Timeline=new Object();Timeline.DateTime=SimileAjax.DateTime;try{(function(){if(typeof Timeline_urlPrefix=="string"){Timeline.urlPrefix=Timeline_urlPrefix;if(typeof Timeline_parameters=="string"){parseURLParameters(Timeline_parameters)}}else{var heads=document.documentElement.getElementsByTagName("head");for(var h=0;h<heads.length;h++){var scripts=heads[h].getElementsByTagName("script");for(var s=0;s<scripts.length;s++){var url=scripts[s].src;var i=url.indexOf("timeline-2.4.x.js");if(i>=0){Timeline.urlPrefix=url.substr(0,i);var q=url.indexOf("?");if(q>0){parseURLParameters(url.substr(q+1))}return}}}throw new Error("Failed to derive URL prefix for Timeline API code file |
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
/*------------------- Horizontal / Vertical lines ----------------*/ | |
/* style for ethers */ | |
.timeline-ether-lines{border-color:#666; border-style:dotted; position:absolute;} | |
.timeline-horizontal .timeline-ether-lines{border-width:0 0 0 1px; height:100%; top: 0; width: 1px;} | |
.timeline-vertical .timeline-ether-lines{border-width:1px 0 0; height:1px; left: 0; width: 100%;} | |
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
/** | |
* Windows-1251 to Unicode converter | |
* Useful when having to use GET query parameters. | |
* e.g. unescaped "%F2%E5%EA%F1%F2", "òåêñò" becomes "текст" | |
* Source: http://xpoint.ru/know-how/JavaScript/PoleznyieFunktsii?38#PerekodirovkaIzWindows1251IKOI | |
*/ | |
function win2unicode(str) { | |
var charmap = unescape( | |
"%u0402%u0403%u201A%u0453%u201E%u2026%u2020%u2021%u20AC%u2030%u0409%u2039%u040A%u040C%u040B%u040F"+ | |
"%u0452%u2018%u2019%u201C%u201D%u2022%u2013%u2014%u0000%u2122%u0459%u203A%u045A%u045C%u045B%u045F"+ |
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/sh | |
# Source: http://bugs.launchpad.net/ubuntu/+source/linux/+bug/352228/comments/109 | |
# | |
# bring them down | |
pkill nm-app | |
sudo modprobe -v -r iwlagn | |
sudo /etc/init.d/network-manager stop | |
sudo /etc/init.d/network-interface stop | |
sudo /etc/init.d/networking stop | |
# start again |
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 | |
/** | |
* Implementation of hook_nodeapi() | |
* Perform any action when a node is published | |
* Note: because no extra data added via $op = 'load', a node "reload" is necessary on presave | |
*/ | |
function mymodule_nodeapi(&$node, $op) { | |
if ($op == 'presave') { | |
if ($node->type == 'my_node_type' && $node->status == 1) { |
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
;Expires | |
;======= | |
ExpiresByType text/html "access plus 3 hours" | |
ExpiresByType image/gif "modification plus 1 year" | |
ExpiresByType image/png "modification plus 1 year" | |
ExpiresByType image/jpg "modification plus 1 year" | |
ExpiresByType image/ico "modification plus 1 year" | |
ExpiresByType text/js "modification plus 1 month" | |
ExpiresByType text/css "modification plus 1 mont |
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
<!-- | |
GMail-style buttons | |
/via http://gregbabula.com/ | |
--> | |
<style> | |
a { | |
font: 12px/12px "Helvetica Neue", Helvetica, sans-serif; | |
border-top: 1px solid #eee; | |
border-right: 1px solid #ccc; | |
border-bottom: 1px solid #ccc; |
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
# | |
# Get the last 2 versions and unpack | |
# | |
wget DRUPAL-new && tar zxvf DRUPAL-new | |
wget DRUPAL-old && tar zxvf DRUPAL-old | |
# | |
# Create a diff patch | |
# | |
diff DRUPAL-old DRUPAL-new > drupal-XtoY.patch |