Skip to content

Instantly share code, notes, and snippets.

View arnested's full-sized avatar

Arne Jørgensen arnested

View GitHub Profile
;;; latexenc.el --- guess correct coding system in LaTeX files -*-coding: iso-2022-7bit -*-
;; Copyright (C) 2005, 2006 Free Software Foundation, Inc.
;; Author: Arne J,Ax(Brgensen <arne@arnested.dk>
;; Keywords: mule, coding system, latex
;; This file is part of GNU Emacs.
;; GNU Emacs is free software; you can redistribute it and/or modify
@arnested
arnested / ctools-page_manager_load_task_handlers_alter.patch
Created March 15, 2012 15:25
drupal_alter in page_manager_load_task_handlers()
diff --git page_manager/page_manager.module page_manager/page_manager.module
index 7b606af..4200315 100644
--- page_manager/page_manager.module
+++ page_manager/page_manager.module
@@ -530,6 +530,9 @@ function page_manager_load_task_handlers($task, $subtask_id = NULL, $default_han
}
}
+ // Let other modules alter the handlers.
+ drupal_alter('page_manager_load_task_handlers', $handlers, $task, $subtask_id);
@arnested
arnested / php.patch
Created May 31, 2012 18:21
libparser/php.c patch - increase YY_BUF_SIZE
--- a/libparser/php.c 2012-01-21 06:15:14.000000000 +0100
+++ b/libparser/php.c 2012-05-31 20:20:04.000000000 +0200
@@ -113,7 +113,7 @@
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
-#define YY_BUF_SIZE 16384
+#define YY_BUF_SIZE 65536
typedef struct yy_buffer_state *YY_BUFFER_STATE;
@arnested
arnested / php.patch
Created June 1, 2012 09:49
libparser/php.c generated by flex 2.5.35
--- a/libparser/php.c 2012-05-30 11:30:15.000000000 +0200
+++ b/libparser/php.c 2012-06-01 11:41:58.000000000 +0200
@@ -1,8 +1,13 @@
+#line 2 "libparser/php.c"
+
+#line 4 "libparser/php.c"
+
+#define YY_INT_ALIGNED short int
+
+/* A lexical scanner generated by flex */
@arnested
arnested / README.md
Created June 27, 2012 21:16
`url-retrieve-synchronously' is dead slow

On my Macbook url-retrieve-synchronously in Emacs 24 is dead slow when running in the graphical user interface while running it in a terminal (-nw) it is quite fast. That's weird.

Please try to evaluate the code below in an Emacs started with and without -nw (and both times started with -Q to rule out local configuration).

Please let me know if you also notice a remarkable speed difference. And please also let me know if you know why and what to do

@arnested
arnested / snapengage-6.make
Created August 20, 2012 09:06
Drush make makefiles for SnapEngage sites
; define core version and drush make compatibility
core = 6.x
api = 2
projects[] = drupal
projects[snapengage][type] = module
projects[snapengage][download][type] = git
projects[snapengage][download][branch] = 6.x-1.x
@arnested
arnested / drupal.wordlist
Created November 28, 2012 10:26
A manual scrape of the dictionary at http://drupal.org/glossary
ADO
API
Article
BLOB
Base
Basic
BoF
CCK
CMS
Construction
diff --git a/includes/common.inc b/includes/common.inc
index 8276576..0c23731 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -5214,7 +5214,10 @@ function drupal_cron_run() {
drupal_register_shutdown_function('drupal_cron_cleanup');
// Iterate through the modules calling their cron handlers (if any):
+ $start = microtime(TRUE);
+ error_log('Module crons started');
--- a/modules/simpletest/drupal_web_test_case.php 2013-09-04 13:31:02.000000000 +0200
+++ b/modules/simpletest/drupal_web_test_case.php 2013-09-04 13:31:08.000000000 +0200
@@ -1763,6 +1763,12 @@
// not overwritten by Curl.
$curl_options[CURLOPT_HTTPHEADER][] = 'Expect:';
}
+
+ // Provide alter possibility for working around nginx probem.
+ if (function_exists('simpletest_curl_alter')) {
+ simpletest_curl_alter($curl_options);
# Drupal watchdog facility has its own log file
? [= Sender drupal] claim only
> /var/log/watchdog.log mode=0644 format=bsd rotate=seq compress file_max=5M all_max=50M
* file /var/log/watchdog.log