There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.
The stack:
- emacs
- offlineimap
- mu
- mu4e
install jdk and jre | |
install jruby with rvm | |
rvm install jruby -v 1.4.0 | |
use jruby | |
rvm jruby | |
install rails | |
gem install rails -v 2.3.2 | |
install columnize (ruby-debug needs it) | |
gem install columnize | |
install ruby-debug |
* Unificar els repos (tret de http://stackoverflow.com/questions/277029/combining-multiple-git-repositories) | |
Here's a solution I gave here: | |
First do a complete backup of your phd directory: I don't want to be held responsible for your losing years of hard work! ;-) | |
$ cp -r phd phd-backup | |
Move the content of phd/code to phd/code/code, and fix the history so that it looks like it has always been there (this uses git's filter-branch command): | |
$ cd phd/code |
/usr/share/xsessions/gnome-stumpwm.desktop | |
[Desktop Entry] | |
Name=Stumpwm Unity | |
Comment=Tiling window manager | |
TryExec=/usr/bin/gnome-session | |
Exec=gnome-session --session=stumpwm | |
Type=XSession | |
installation in ubuntu 11.10 | |
$ cd ~/sources | |
$ git clone https://github.com/djcb/mu.git | |
$ cd mu | |
$ sudo apt-get install libtool libgmime-2.4-dev libxapian-dev | |
$ autoreconf -i | |
$ configure | |
$ make | |
$ make install |
;; only the first time: | |
;; $ sbcl | |
;; (ql:quickload "cffi") | |
--- | |
(load "~/development/cl-libusb/package.lisp") | |
(in-package :cl-libusb) |
#!/usr/bin/env ruby | |
# @see http://stackoverflow.com/a/11522507 | |
if ARGV.empty? | |
$stdout.puts "Usage: cleanup.rb dump.sql table_a [table_b ...]" | |
else | |
args = ARGV.reverse | |
file = args.pop | |
output_file = "#{file.gsub(File.extname(file), '')}-cleanup.sql" |
(defun custom-mu4e-trash-folder (msg) | |
(if msg | |
(cond | |
((string-match "foo@gmail.com" (mu4e-message-field msg :maildir)) | |
"/foo0@gmail.com/[Gmail].Trash") | |
((string-match "foo@3scale.net" (mu4e-message-field msg :maildir)) | |
"/foo@3scale.net/[Gmail].Trash")) | |
(mu4e-ask-maildir-check-exists "Save message to maildir: "))) | |
(setq mu4e-trash-folder 'custom-mu4e-trash-folder) |
require 'benchmark/ips' | |
Benchmark.ips do |bm| | |
path = "/tmp/unknown_file.unknown_ext" | |
bm.report("using rescue") do | |
begin | |
File.read(path) | |
rescue | |
"file doesn't exist" |
$ battle --ask-sudo-pass --config-file=https://db.tt/aG2uyydU | |
## Downloading config from url ################################################################################### | |
Fatal Task: localhost => Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 530, in _executor | |
exec_rc = self._executor_internal(host, new_stdin) | |
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 621, in _executor_internal | |
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) | |
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 878, in _executor_internal_inner | |
self.callbacks.on_failed(host, data, ignore_errors) |