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 perl | |
| # 사용법 | |
| # perl demacboogi.pl *.zip #zip파일만 변환 | |
| # perl demacboogi.pl #모든파일 변환 | |
| use 5.010; | |
| use strict; | |
| use warnings; | |
| use Encode qw/encode decode/; | |
| use Unicode::Normalize qw/compose/; | |
| use File::Copy; |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| #+TITLE: Template org-mode document for export to LaTeX/PDF | |
| #+AUTHOR: David Weinstein | |
| #+LaTeX_HEADER: \usepackage[left=1in,top=1in,right=1in,bottom=1.5in]{geometry} | |
| #+LaTeX_HEADER: \usepackage{palatino} | |
| #+LaTeX_HEADER: \usepackage{fancyhdr} | |
| #+LaTeX_HEADER: \usepackage{sectsty} | |
| #+LaTeX_HEADER: \usepackage{engord} | |
| #+LaTeX_HEADER: \usepackage{cite} | |
| #+LaTeX_HEADER: \usepackage{graphicx} |
| def get_uncompressed_size(self, file): | |
| fileobj = open(file, 'r') | |
| fileobj.seek(-8, 2) | |
| crc32 = gzip.read32(fileobj) | |
| isize = gzip.read32(fileobj) # may exceed 2GB | |
| fileobj.close() | |
| return isize |
| import requests, random, datetime, sys, webbrowser, console | |
| def main(): | |
| song_page = None | |
| if (len(sys.argv) > 0): | |
| try: | |
| song_page = sys.argv[1] | |
| except Exception: | |
| song_page = None | |
| if not song_page: |
| ; Autohotkey Capslock Remapping Script | |
| ; Danik | |
| ; More info at http://danikgames.com/blog/?p=714 | |
| ; danikgames.com | |
| ; | |
| ; Functionality: | |
| ; - Deactivates capslock for normal (accidental) use. | |
| ; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
| ; - Access the following functions when pressing Capslock: | |
| ; Cursor keys - J, K, L, I |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
Add these lines to the end of /etc/sysctl.conf:
vm.swappiness=5
vm.min_free_kbytes=122880
vm.vfs_cache_pressure=500
Run these commands as root:
sudo sysctl -w vm.swappiness=5;
sudo sysctl -w vm.min_free_kbytes=122880
| #!/usr/bin/python | |
| import re, math | |
| def LoadPPLFile (pplfile) : | |
| """ | |
| Load up the salient info from a -debug 2 PPL file | |
| generated by the SRILM ngram tool. | |
| """ | |
| ppl_info = [] |