summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-27 00:25:48 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 17:27:45 -0500
commit0f4a6cf04af0cb2a33637dda81dfd82adbc7acc6 (patch)
tree2a267742e1f53718ac209c41300a69f94c3746f2
parent45a1be2b12ce1de669b6106a5eca4c9bc91a5f6a (diff)
stuff
l---------.arduino1
l---------.config/emacs/rc.d1
l---------.config/emacs/rc.el1
-rw-r--r--.emacs1
-rw-r--r--.emacs.d/custom.el5
-rw-r--r--.git.info.exclude.in1
-rw-r--r--.gitconfig4
-rw-r--r--.maildirproc/default.rc42
-rw-r--r--.maildirproc/purdue.rc82
-rw-r--r--.offlineimaprc36
-rw-r--r--.profile4
-rw-r--r--.ssh/config4
12 files changed, 155 insertions, 27 deletions
diff --git a/.arduino b/.arduino
new file mode 120000
index 0000000..25bbfc1
--- /dev/null
+++ b/.arduino
@@ -0,0 +1 @@
+.config/arduino \ No newline at end of file
diff --git a/.config/emacs/rc.d b/.config/emacs/rc.d
new file mode 120000
index 0000000..cbf0836
--- /dev/null
+++ b/.config/emacs/rc.d
@@ -0,0 +1 @@
+../../.emacs.d \ No newline at end of file
diff --git a/.config/emacs/rc.el b/.config/emacs/rc.el
new file mode 120000
index 0000000..6d539f6
--- /dev/null
+++ b/.config/emacs/rc.el
@@ -0,0 +1 @@
+../../.emacs \ No newline at end of file
diff --git a/.emacs b/.emacs
index 3cd2ea3..65634cb 100644
--- a/.emacs
+++ b/.emacs
@@ -170,6 +170,7 @@
))
(add-to-list 'auto-mode-alist '("PKGBUILD" . sh-mode))
+(add-to-list 'auto-mode-alist '("SRCBUILD" . sh-mode))
;(require 'flymake)
;(add-hook 'php-mode-hook (lambda() (flymake-mode 1)))
diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el
index 5a3e67f..07c8d80 100644
--- a/.emacs.d/custom.el
+++ b/.emacs.d/custom.el
@@ -12,7 +12,10 @@
'(minibuffer-prompt-properties (quote (read-only t point-entered minibuffer-avoid-prompt face minibuffer-prompt)))
'(ruby-deep-arglist nil)
'(ruby-deep-indent-paren nil)
- '(scroll-bar-mode nil))
+ '(safe-local-variable-values (quote ((Nginx-indent-tabs-mode) (Nginx-indent-level . 4) (Nginx-indent-level . 8))))
+ '(scroll-bar-mode nil)
+ '(sh-basic-offset 8)
+ '(sh-indent-comment t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/.git.info.exclude.in b/.git.info.exclude.in
index 612ecf2..cd60859 100644
--- a/.git.info.exclude.in
+++ b/.git.info.exclude.in
@@ -32,6 +32,7 @@ history
*.lock
.~lock.*#
+*.lock.*
lock
*.state
diff --git a/.gitconfig b/.gitconfig
index 9846d72..218b006 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -8,3 +8,7 @@
smtpserver = plus.smtp.mail.yahoo.com
smtpuser = lukeshu@sbcglobal.net
smtpserverport = 465
+[push]
+ default = matching
+[alias]
+ lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
diff --git a/.maildirproc/default.rc b/.maildirproc/default.rc
index c2ad6f2..cbdc908 100644
--- a/.maildirproc/default.rc
+++ b/.maildirproc/default.rc
@@ -10,7 +10,9 @@ def is_to_or_from(mail,address):
Return true if [mail] is to or from an address that contains [address].
"""
return (
- mail["From"].contains(address)
+ False
+ or mail["From"].contains(address)
+ or mail["Reply-To"].contains(address)
or mail.target.contains(address))
def is_to_or_from_re(mail,address):
"""
@@ -90,6 +92,10 @@ def my_filters(mail):
mail.move(".software.social")
return
+ if mail["List-Id"].matches("networkmanager-list\.gnome\.org"):
+ mail.move(".software.networkmanager")
+ return
+
if mail["List-Id"].matches("maintenance.lists.parabolagnulinux.org"):
mail.move(".software.parabola-maintenance")
return
@@ -97,6 +103,7 @@ def my_filters(mail):
False
or mail["List-Id"].matches("parabolagnulinux.org")
or is_to_or_from(mail, "parabolagnulinux.org")
+ or is_to_or_from(mail, "kiwwwi.com.ar")
or is_to_or_from(mail, "parabola.nu")
):
mail.move(".software.parabola-dev")
@@ -166,6 +173,7 @@ def my_filters(mail):
"justicejade10@aol.com",
"parsonsjade@aol.com",
"parsonstjade@gmail.com",
+ "jadparso@umail.iu.edu",
]:
if mail["From"].contains(address):
mail.move(".misc.Jade")
@@ -190,23 +198,24 @@ def my_filters(mail):
# Sort mail from FRC people
for address in [
- "jeffreysmith@msdlt.k12.in.us",
- "jason.zielke@gmail.com",
- "allison.m.babcock@gmail.com",
- "william.walk@gmail.com",
+ "@ni.com",
+ "@usfirst.org",
"BBonahoom@stanleyworks.com",
- "wcxctrack829@aim.com", # Pat
+ "allison.m.babcock@gmail.com",
+ "bryanbonahoom@gmail.com",
+ "cdewalt3@yahoo.com",
+ "dave.nelson@ecolab.com",
+ "dickaustin190@yahoo.com",
"djnels1@comcast.net", # Dave and Julie Nelson
+ "gamefreak207@gmail.com", # Brett Leedy
+ "jason.zielke@gmail.com",
+ "jeffreysmith@msdlt.k12.in.us",
"sarahlittell@comcast.net",
+ "silioso@gmail.com",
"skiplittell@comcast.net",
- "dave.nelson@ecolab.com",
- "@ni.com",
- "@usfirst.org",
- "gamefreak207@gmail.com", # Brett Leedy
"tswilson4801@att.net",
- "silioso@gmail.com",
- "cdewalt3@yahoo.com",
- "bryanbonahoom@gmail.com",
+ "wcxctrack829@aim.com", # Pat
+ "william.walk@gmail.com",
]:
if is_to_or_from(mail,address):
mail.move(".School.Robotics")
@@ -224,6 +233,7 @@ def my_filters(mail):
# Sort mail from software people
for address in [
"gnu.org",
+ "gnome.org",
"eff.org",
"gitorious.org",
"sourceforge.com",
@@ -306,10 +316,10 @@ def my_filters(mail):
return
if (
False
- or mail["From"].contains(".edu")
+ #or mail["From"].contains(".edu")
or mail["From"].contains("admissions@")
- or mail["From"].contains("college")
- or mail["From"].contains("university")
+ #or mail["From"].contains("college")
+ #or mail["From"].contains("university")
or mail["Subject"].contains("college")
# now we get to the BS
or mail["From"].contains("@dreamitdoitindiana.com")
diff --git a/.maildirproc/purdue.rc b/.maildirproc/purdue.rc
new file mode 100644
index 0000000..546b792
--- /dev/null
+++ b/.maildirproc/purdue.rc
@@ -0,0 +1,82 @@
+# -*- mode: python; -*-
+
+import subprocess
+
+processor.maildir_base = "~/Maildir.purdue"
+processor.auto_reload_rcfile = True
+
+def is_to_or_from(mail,address):
+ """
+ Return true if [mail] is to or from an address that contains [address].
+ """
+ return (
+ mail["From"].contains(address)
+ or mail.target.contains(address))
+def is_to_or_from_re(mail,address):
+ """
+ Return true if [mail] is to or from an address that matches the
+ regex [address].
+ """
+ return (
+ mail["From"].matches(address)
+ or mail.target.matches(address))
+
+def handle_incoming_ham(mail):
+ my_filters(mail)
+
+def handle_incoming_unknown(mail):
+ # Filter spam
+
+ spam = bogofilter_auto(mail)
+ if spam == 0:
+ handle_incoming_spam(mail)
+ return
+ elif spam == 1:
+ handle_incoming_ham(mail)
+ return
+ elif spam == 2:
+ # maybe spam
+ return
+ else:
+ mail.move(".Error")
+ return
+
+def my_filters(mail):
+ if mail["Subject"].contains("[PASE]"):
+ mail.move("INBOX.PASE")
+ return
+ if mail["Subject"].contains("[PLUG]"):
+ mail.move("INBOX.PLUG")
+ return
+ if mail["Subject"].contains("Fall-2012-SCI-21000-001:"):
+ mail.move("INBOX.classes.SCI210")
+ if (
+ False
+ or mail["Subject"].contains("[CS Opportunity Update]")
+ or mail["Subject"].contains("[CS Majors]")
+ ):
+ mail.move("INBOX.CS")
+ return
+ if is_to_or_from(mail,"linkedin.com"):
+ mail.move("INBOX.LinkedIn")
+ return
+ if mail["Subject"].contains("fall-2012-cs-18000"):
+ mail.move("INBOX.classes.CS180")
+ return
+ if (
+ False
+ or is_to_or_from(mail,"CS 18000 on Piazza")
+ or mail["Subject"].contains("CS 18000 on Piazza")
+ ):
+ mail.move("INBOX.classes.CS180.Piazza")
+ return
+ if mail["Subject"].contains("Fall-2012-SOC-10000"):
+ mail.move("INBOX.classes.SOC100")
+ return
+
+handle_mapping = {
+ "INBOX": handle_incoming_ham,
+ }
+processor.maildirs = handle_mapping.keys()
+for mail in processor:
+ handle_mapping[mail.maildir](mail)
diff --git a/.offlineimaprc b/.offlineimaprc
index 319593c..8ea8f30 100644
--- a/.offlineimaprc
+++ b/.offlineimaprc
@@ -1,22 +1,22 @@
# -*- Mode: Conf -*-
[general]
-accounts = LukeShu
+accounts = ATT,Purdue
-[Account LukeShu]
-localrepository = Local
-remoterepository = Remote
+## AT&T ###############################################################
-[Repository Local]
+[Account ATT]
+localrepository = Local-Main
+remoterepository = Remote-SBCGlobal
+
+[Repository Local-Main]
type = Maildir
localfolders = ~/Maildir
sep = .
folderfilter = lambda foldername: not re.search('(Trash|Del|-old|Draft)', foldername)
-
# transforms local -> remote
nametrans = lambda foldername: re.sub('^$', 'Inbox', re.sub('^'+re.escape('%(sep)s'), '', foldername))
-
-[Repository Remote]
+[Repository Remote-SBCGlobal]
type = IMAP
ssl = yes
cert_fingerprint = 700d84baa7e852240178dc2de18e7e528a2854df
@@ -27,3 +27,23 @@ folderfilter = lambda foldername: not re.search('(Trash|Del)', foldername)
# transforms remote -> local
# we must assume that sep=/ on the remote IMAP server.
nametrans = lambda foldername: '/'+re.sub('^Inbox$', '', foldername)
+
+## Purdue ############################################################
+
+[Account Purdue]
+localrepository = Local-Purdue
+remoterepository = Remote-Purdue
+
+[Repository Local-Purdue]
+type = Maildir
+localfolders = ~/Maildir.purdue
+sep = .
+folderfilter = lambda foldername: re.search('INBOX', foldername)
+
+[Repository Remote-Purdue]
+type = IMAP
+ssl = yes
+cert_fingerprint = 32bdd134cad8da1bea57aa379b98b1cff692e4fd
+remotehost = mymail.purdue.edu
+remoteuser = shumakl
+folderfilter = lambda foldername: re.search('INBOX', foldername)
diff --git a/.profile b/.profile
index a6c4d91..2d6f370 100644
--- a/.profile
+++ b/.profile
@@ -43,8 +43,8 @@ if [ -z "$GPGKEY" ] && [ -f "${HOME}/.gnupg/gpg.conf" ]; then
export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${HOME}/.gnupg/gpg.conf"`
fi
if [ -z "$(pgrep -u `whoami` gpg-agent)" ]; then
- mkdir -p ${XDG_RUNTIME_DIR}/sessions/gpg
- gpg-agent --daemon --write-env-file "${XDG_RUNTIME_DIR}/sessions/gpg"
+ mkdir -p ${XDG_RUNTIME_DIR}/sessions
+ gpg-agent --daemon --write-env-file "${XDG_RUNTIME_DIR}/sessions/gpg" &>/dev/null
fi
if [ -f "${XDG_RUNTIME_DIR}/sessions/gpg" ]; then
. "${XDG_RUNTIME_DIR}/sessions/gpg"
diff --git a/.ssh/config b/.ssh/config
index 5c271b5..63519e1 100644
--- a/.ssh/config
+++ b/.ssh/config
@@ -9,3 +9,7 @@ Host parabola
Port 1863
HostName repo.parabolagnulinux.org
User repo
+
+Host lore
+ HostName lore.cs.purdue.edu
+ User shumakl