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
[general] | |
pythonfile = ~/.offlineimap.py | |
accounts = gmail | |
[Account gmail] | |
localrepository = gmail-local | |
remoterepository = gmail-remote | |
status_backend = sqlite | |
[Repository gmail-local] |
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
;; Shortcut for offlineimap.el running | |
(eval-after-load "gnus" | |
'(progn | |
(define-key gnus-group-mode-map (kbd "v g") | |
(lambda () | |
(interactive) | |
(offlineimap))))) | |
;; Add a hook to get news after offlineimap is finished | |
(add-hook 'offlineimap-event-hooks (lambda (msg-type &optional action) |
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
(defun snip-reply (b e) | |
"remove selected lines, and replace with a snip" | |
(interactive "r") | |
(delete-region b e) | |
(insert "> [...]\n" )) |
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
;; Buffer indention stuff, either indent region or buffer w/ a C-M-\ | |
(defun indent-buffer () | |
"Indent the currently visited buffer." | |
(interactive) | |
(indent-region (point-min) (point-max))) | |
(defun indent-region-or-buffer () | |
"Indent a region if selected, otherwise the whole buffer." | |
(interactive) | |
(save-excursion |
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
>>> def check_portstr(portstr): | |
... from_port, sep, to_port = portstr.partition('-') | |
... if not to_port: | |
... if not sep: | |
... to_port = from_port | |
... else: | |
... raise Exception("onoes") | |
... return from_port, to_port | |
... | |
>>> check_portstr("1-2") |
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
def _gen_ports(portstr): | |
from_port, sep, to_port = portstr.partition('-') | |
if not to_port: | |
if not sep: | |
to_port = from_port | |
else: | |
# This is an invalid configuration, such as "1-", | |
# so the port will be set to 0, which is generally | |
# not going to be seen as valid. | |
to_port = 0 |
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
12291 baz 20 0 327m 297m 5256 R 24.6 7.6 0:05.29 cc1plus | |
12286 baz 20 0 309m 283m 7820 R 24.3 7.3 0:05.30 cc1plus | |
12301 baz 20 0 327m 297m 5256 R 24.3 7.6 0:05.24 cc1plus | |
12276 baz 20 0 298m 270m 7568 R 23.9 6.9 0:05.27 cc1plus | |
12283 baz 20 0 305m 278m 7584 R 23.9 7.1 0:05.26 cc1plus | |
12296 baz 20 0 327m 298m 5260 R 23.9 7.6 0:05.25 cc1plus | |
12297 baz 20 0 327m 297m 5256 R 23.9 7.6 0:05.25 cc1plus | |
12300 baz 20 0 326m 297m 5260 R 23.9 7.6 0:05.18 cc1plus | |
3470 baz 20 0 1045m 82m 20m S 1.7 2.1 0:07.92 chrome |
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
baz@marceline:~$ dd bs=4M if=~/Downloads/firmware-jessie-DI-a1-amd64-netinst.iso of=/dev/sdb | |
baz@marceline:~$ sync | |
baz@marceline:~$ |
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
baz@rainicorn:~$ cat /usr/share/X11/xorg.conf.d/99-x1-synaptics.conf | |
section "InputClass" | |
Identifier "nathan touchpad catchall" | |
MatchIsTouchpad "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "synaptics" | |
# three fingers for the middle button | |
Option "TapButton3" "2" | |
# drag lock |
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
baz@rainicorn:~$ sudo cat /usr/share/X11/xorg.conf.d/90-edev-trackpoint.conf | |
[sudo] password for baz: | |
Section "InputClass" | |
Identifier "Trackpoint Wheel Emulation" | |
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint" | |
MatchDevicePath "/dev/input/event*" | |
Option "EmulateWheel" "true" | |
Option "EmulateWheelButton" "2" | |
Option "Emulate3Buttons" "false" | |
Option "XAxisMapping" "6 7" |
OlderNewer