Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
@mgalgs
mgalgs / gist:7044983
Created October 18, 2013 17:31
gnome update breaks emacs
Backtrace:
emacs[0x4f719b]
emacs[0x4dcc4e]
emacs[0x4f5dee]
emacs[0x4f5f53]
/usr/lib/libpthread.so.0(+0xf870)[0x7f7c11869870]
/usr/lib/libc.so.6(getenv+0xad)[0x7f7c114e653d]
/usr/lib/libc.so.6(+0x30009)[0x7f7c114df009]
/usr/lib/libgtk-3.so.0(+0x18173a)[0x7f7c163da73a]
/usr/lib/libgobject-2.0.so.0(g_type_class_ref+0x4ae)[0x7f7c1529186e]
Debugger entered--Lisp error: (arith-error)
%(2 0)
(search-backward "\n" nil t (% (line-number-at-pos) helm-swoop-last-prefix-number))
(progn (search-backward "\n" nil t (% (line-number-at-pos) helm-swoop-last-prefix-number)) (goto-char (point-at-bol)))
(make-overlay (progn (search-backward "\n" nil t (% (line-number-at-pos) helm-swoop-last-prefix-number)) (goto-char (point-at-bol))) (save-excursion (goto-char (point-at-bol)) (or (search-forward "\n" nil t helm-swoop-last-prefix-number) (point-max))))
(setq helm-swoop-line-overlay (make-overlay (progn (search-backward "\n" nil t (% (line-number-at-pos) helm-swoop-last-prefix-number)) (goto-char (point-at-bol))) (save-excursion (goto-char (point-at-bol)) (or (search-forward "\n" nil t helm-swoop-last-prefix-number) (point-max)))))
(overlay-put (setq helm-swoop-line-overlay (make-overlay (progn (search-backward "\n" nil t (% (line-number-at-pos) helm-swoop-last-prefix-number)) (goto-char (point-at-bol))) (save-excursion (goto-char (point-at-bol)) (o
(setq demo-options
'("Stuff"
"things"
("Custom" . (lambda () (read-from-minibuffer "Custom: ")))))
(defun demo-select (el)
(cond
((functionp el)
(funcall el))
(t
>>> import dbus
>>> bus = dbus.SessionBus()
>>> obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
>>> purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
>>> purple.PurpleSavedstatusGetCurrent()
dbus.Int32(379)
>>> purple.PurpleAccountsGetAllActive()
dbus.Array([dbus.Int32(196)], signature=dbus.Signature('i'))
[40960.905039] btrfs: relocating block group 13992198144 flags 4
[40973.487485] btrfs: found 253 extents
[41003.930553] btrfs: found 253 extents
[41004.776082] btrfs: relocating block group 8623489024 flags 1
[41105.091263] btrfs: found 36351 extents
[41124.402284] btrfs: found 33738 extents
[41124.926495] btrfs: relocating block group 7549747200 flags 4
[41135.152631] btrfs: found 119 extents
[41146.100826] btrfs: found 119 extents
[41146.524311] btrfs: relocating block group 6476005376 flags 4
[13462.391937] btrfs: device fsid 03a83a42-0bc7-42a2-bed6-df19c825897c devid 2 transid 95625 /dev/sdc
[13462.532136] btrfs: device fsid 03a83a42-0bc7-42a2-bed6-df19c825897c devid 1 transid 95625 /dev/sda6
[13479.393750] btrfs: device fsid 03a83a42-0bc7-42a2-bed6-df19c825897c devid 1 transid 95625 /dev/sda6
[13479.394386] btrfs: disk space caching is enabled
[13479.995184] parent transid verify failed on 625292959744 wanted 95626 found 95625
[13479.995191] btrfs: failed to read log tree
[13480.051334] btrfs: open_ctree failed
sudo btrfsck --repair /dev/sda6 1 ↵ ~/kk_3.5
enabling repair mode
Checking filesystem on /dev/sda6
UUID: 03a83a42-0bc7-42a2-bed6-df19c825897c
checking extents
Backref 122643533824 parent 5 root 5 not found in extent tree
Backref 122643533824 parent 123939635200 not referenced back 0x55ef990
Incorrect global backref count on 122643533824 found 2 wanted 1
backpointer mismatch on [122643533824 4096]
repair deleting extent record: key 122643533824 168 4096
(defun is-array-def ()
(save-excursion
(let (end-of-statement (save-excursion (search-forward ";")))
;; it's an array if we find all of the following characters before
;; the next semi-colon: `[={'. Is that good enough??
(and (re-search-forward "\\[" end-of-statement t)
(re-search-forward "=" end-of-statement t)
(re-search-forward "{" end-of-statement t)))))
(setq load-path (append '("~/.emacs.d/site-lisp/helm" """~/.emacs.d/site-lisp/helm-swoop") load-path))
(require 'helm)
(require 'helm-config)
(require 'helm-swoop)
/ {
cpus {
cpu-map {
cluster1 {
core0 {
cpu = <&CPU0>;
};
core1 {
cpu = <&CPU1>;
};