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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# filename : almarctl.py | |
# created at : 2013-04-04 21:27:12 | |
# author : Jianing Yang <jianingy.yang AT gmail DOT com> | |
__author__ = 'Jianing Yang <jianingy.yang AT gmail DOT com>' | |
from os import environ |
#!/bin/bash | |
# filename : screenshot.sh | |
# created at : 2013-04-05 20:01:35 | |
# author : Jianing Yang <jianingy.yang AT gmail DOT com> | |
# client id from imgur.com | |
client=0350033e1d023ba | |
# temporary file for storing screenshot | |
img=$(mktemp --suffix .png) |
server { | |
listen 80 default; | |
listen [::]:80 default; | |
server_name _; | |
charset utf-8; | |
access_log off; | |
root /var/www/$http_host/wwwroot/; | |
location / { | |
index index.html index.htm index.php; |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import random | |
import unittest | |
import psycopg2 | |
#SERVICE_BASE = 'http://localhost:9999/op' | |
SERVICE_BASE = 'http://dnsdev2.cm3:55555/op' |
import XMonad | |
import XMonad hiding (Tall) | |
import XMonad.Actions.CycleWS | |
import XMonad.Actions.FloatKeys | |
import XMonad.Actions.GridSelect | |
import XMonad.Hooks.DynamicHooks | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# filename : ustack.py | |
# created at : 2013-06-15 21:05:10 | |
# author : Jianing Yang <jianingy.yang AT gmail DOT com> | |
__author__ = 'Jianing Yang <jianingy.yang AT gmail DOT com>' | |
from pyparsing import * |
from ubuntu:12.04 | |
run apt-get install -y openssh-server sudo | |
run useradd -s /bin/bash -m jianingy | |
run gpasswd -a jianingy sudo | |
run sed -i '/%sudo/s/ALL$/NOPASSWD:ALL/g' /etc/sudoers | |
run dpkg-divert --local --rename --add /sbin/initctl | |
run ln -s /bin/true /sbin/initctl | |
run service ssh start | |
run mkdir -p /var/run/sshd | |
add authorized_keys /home/jianingy/.ssh/authorized_keys |
! | |
key chain primary | |
key 1 | |
key-string secret | |
hostname a1.example.com | |
interface tap-obfs1 | |
ip rip authentication mode md5 | |
ip rip authentication key-chain primary |
! Zebra configuration saved from vty | |
! 2013/10/31 11:24:22 | |
! | |
hostname a1.example.com | |
log syslog | |
log facility local7 | |
! | |
! | |
! |