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
/* | |
* Based on the original from http://www.skipser.com/p/2/p/auto-delete-email-in-any-gmail-label-.html | |
* | |
* Tweaked to keep messages from mythreads | |
*/ | |
// The name of the Gmail Label that is to be checked for purging? | |
var LABEL_TO_DELETE = "kernel/lkml"; | |
// But not these labels | |
var LABEL_TO_KEEP = "mythreads"; |
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
from __future__ import print_function | |
# | |
# This script needs to be run on startup | |
# qemu -kernel ${KERNEL} -s -S | |
# and then: | |
# gdb ${KERNEL}.vmlinux -x ${QEMU_SRC}/tests/guest-debug/test-ss.py | |
# | |
# This is a soak test for single-stepping which attempts to detect | |
# failed single-steps by single stepping a whole kernel. |
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
$ ./configure --target-list=aarch64-linux-user --static | |
$ make |
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
(defvar my-overlays nil) | |
(let ((start (point-min))) | |
(save-excursion | |
(goto-char start) | |
(while (re-search-forward "aaaa" nil t) | |
(let ((overlay (make-overlay start (- (match-beginning 0) 1)))) | |
(add-to-list 'my-overlays overlay)) | |
(forward-line) | |
(setq start (point))))) |
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
;;; | |
;; Run checkpatch.pl if we can | |
;; | |
(defvar magit-checkpatch-script nil | |
"Path to local checkpatch script, if it exists.") | |
(make-variable-buffer-local 'magit-checkpatch-script) | |
(put 'magit-checkpatch-script 'permanent-local t) | |
;; Match checkpatch.pl output | |
(add-to-list |
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
(defvar mark-list-mode-map | |
(let ((map (make-sparse-keymap))) | |
(set-keymap-parent map tabulated-list-mode-map) | |
(define-key map (kbd "RET") 'mark-list-visit-buffer) | |
(define-key map "\C-m" 'mark-list-visit-buffer) | |
(define-key map (kbd "d") 'mark-list-delete-mark) | |
map) | |
"Local keymap for `mark-list-mode-mode' buffers.") | |
(defvar mark-list-current-mark-list nil |
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
;;; yasnippet-modeline.el --- Update mode-line with potential YASnippet keywords | |
;; Copyright (C) 2013 Alex Bennée | |
;; Author: Alex Bennée <[email protected]> | |
;; Maintainer: Alex Bennée <[email protected]> | |
;; Version: 0.01 | |
;; Homepage: https://gist.github.com/4664006 | |
;; This file is not part of GNU Emacs. |