Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @file
* Input filter which adds or rewrites a title attribute to links. The title
* is taken form the pagetitle where the link is pointing to.
*
* @author Rolf Meijer for Studio Karu
* @see http://drupal.org/user/358052
*/
Index: evrouter.c
===================================================================
--- evrouter.c (revision 15)
+++ evrouter.c (working copy)
@@ -78,6 +78,7 @@
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>
+#include <X11/XKBlib.h>
2012-06-13 12:00:01 sa-learn-cyrus[5220]: Mailbox 'rolf'
2012-06-13 12:00:01 sa-learn-cyrus[5220]: 1 mails found in spam folder 'user.rolf.Learn.Spam'
2012-06-13 12:00:01 sa-learn-cyrus[5220]: Learning spam from folder 'user.rolf.Learn.Spam' in path '/var/spool/cyrus/mail/r/user/rolf/Learn/Spam'.
2012-06-13 12:00:07 sa-learn-cyrus[5220]: sa-learn> netset: cannot include 0:0:0:0:0:0:0:1/128 as it has already been included
2012-06-13 12:00:07 sa-learn-cyrus[5220]: sa-learn> netset: cannot include 0:0:0:0:0:0:0:1/128 as it has already been included
2012-06-13 12:00:07 sa-learn-cyrus[5220]: sa-learn> Learned tokens from 1 message(s) (1 message(s) examined)
2012-06-13 12:00:07 sa-learn-cyrus[5220]: Purging learned spam mails from folder 'user.rolf.Learn.Spam'
2012-06-13 12:00:07 sa-learn-cyrus[5220]: ipurge> Working on user.rolf.Learn.Spam...
2012-06-13 12:00:07 sa-learn-cyrus[5220]: ipurge> total messages 1
2012-06-13 12:00:07 sa-learn-cyrus[5220]: ipurge> total bytes 2650
@mrvdb
mrvdb / interfaces
Created July 12, 2012 16:06
Linux network /etc/network/interfaces file to bond eth0 and wlan0 into one virtual interface bond0
# Regardless of how our topology looks, we'll need the local interface
auto lo
iface lo inet loopback
# Configuration basics taken from:
# http://www.kernel.org/doc/Documentation/networking/bonding.txt
# Define the bonding master, which is ideally our only interface to the outside world
# - define slaves as none initially, this helps with booting faster
# - the primary line makes most sense here, but is not enough
# - set the interface check interval to 100ms
Testing gist-buffer
@mrvdb
mrvdb / gist:3111823
Created July 14, 2012 15:25
Automatic asynchronous org-mobile-push in idle time.
;; Show a notification when a push has been completed
(require 'notifications)
(defun notify-push (result)
(notifications-notify
:title "Push complete"
:body (format "Org-mobile-push: %s" result)
)
)
;; Fork the work of pushing to mobile
;; Try to have urls and mailto links clickable everywhere
(define-global-minor-mode global-goto-address-mode
goto-address-mode
(lambda ()
(goto-address-mode 1)))
(global-goto-address-mode t)
diff --git a/lib/mediafile.php b/lib/mediafile.php
index caa902d..b31a725 100644
--- a/lib/mediafile.php
+++ b/lib/mediafile.php
@@ -176,17 +176,41 @@ class MediaFile
}
}
+ private static function normalize_files_param($files, $param) {
+ // This function exists because the media parameter has two
diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
index 06ce430..723a561 100755
--- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
+++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
@@ -171,6 +171,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
}
$timeline = null;
+ $mentions = null;