Skip to content

Instantly share code, notes, and snippets.

View arnested's full-sized avatar

Arne Jørgensen arnested

View GitHub Profile
@arnested
arnested / README.md
Last active July 5, 2022 13:30
Using Font Awesome in the Emacs mode line

Font Awesome icons in Emacs mode-line

I installed Font Awesome and uses it to make my Emacs mode line look cool:

  • Use the align-left icon for auto-fill-mode.
  • Use the thumbs-up and thumbs-down icons for flymake status (we need to reimplement flymake-report-status to make this happen).
  • Use the tags icon for gtags-mode.

Requirements: diminish.el - I installed it from MELPA.

@arnested
arnested / keybase.md
Created April 29, 2014 05:12
Keybase proof

Keybase proof

I hereby claim:

  • I am arnested on github.
  • I am arnested (https://keybase.io/arnested) on keybase.
  • I have a public key whose fingerprint is D8A1 3FA5 BAE3 E168 5C12 A72D 1397 DB79 20AB 13A8

To claim this, I am signing this object:

#!/bin/sh
# Copyright (C) 2014 Arne Jørgensen
FILE=$1
if [ ! -r "${FILE}" ]; then
echo \""${FILE}"\" is not readable
exit 1;
fi
@arnested
arnested / glob.patch
Last active August 29, 2015 13:56
GNU Global experimental patch
Index: libutil/conf.c
===================================================================
RCS file: /sources/global/global/libutil/conf.c,v
retrieving revision 1.61
diff -c -r1.61 conf.c
*** libutil/conf.c 18 Dec 2013 03:39:41 -0000 1.61
--- libutil/conf.c 18 Feb 2014 23:21:24 -0000
***************
*** 358,365 ****
if (exist && sb)
# 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
--- 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);
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');
@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
@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 / 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