5ddfd5a61ea1

Update with various crap from the past few weeks.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 13 Jun 2013 10:44:08 -0400
parents 9148639bdef5
children c454b5b4804c
branches/tags (none)
files .hgsubstate bin/clean_mail dotcss/default.css dotcss/news.ycombinator.com.css fish/config.fish mutt/muttrc vim/bundle/django-custom/indent/htmldjango.vim vim/bundle/django-custom/syntax/django.vim

Changes

--- a/.hgsubstate	Thu Jun 13 10:42:18 2013 -0400
+++ b/.hgsubstate	Thu Jun 13 10:44:08 2013 -0400
@@ -2,7 +2,7 @@
 b0da16490f168f68072973b45dbc27a74fb7b529 mercurial/histedit
 4d95cb18a3b420154ef978c53de1d2e692f8343d mercurial/templates
 64981213be2efd939e6e6e109e2b32c24e95fd95 vim/bundle/AnsiEsc.vim
-9895285042a2fd5691b2f6582aa979e4d1bdffea vim/bundle/ack
+f183a345a0c10caed7684d07dabae33e007c7590 vim/bundle/ack
 b8e07a24e77d3bad16a89bde409f97ccc307486a vim/bundle/badwolf
 8533fffd9fbb690dfc8e334f91a10c72e35a6dce vim/bundle/clam
 dc349bb7d30f713d770fc1fa0fe209e6aab82dc8 vim/bundle/commentary
@@ -29,5 +29,5 @@
 1a73f607f8f5477d6942df2eb6e7245c4864f4d3 vim/bundle/surround
 0a7b21d6021a3a565db066e7b8f7f158c918037c vim/bundle/syntastic
 2dee007ddae8156735cbae7f0cd4e0a24ba7287b vim/bundle/tslime
-1dae3b9a0e6fd9d05698bd45d501e232787f317a vim/bundle/vitality
+84365f56fc87c11f1f04eed487d256cf8b128f7c vim/bundle/vitality
 8ebc225b364887c0557ab47ab2ca752a70123bee vim/bundle/yankring
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/clean_mail	Thu Jun 13 10:44:08 2013 -0400
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+import sys
+
+
+def next_line():
+    l = sys.stdin.readline()
+    if not l:
+        sys.exit(0)
+    return l
+
+# Skip headers
+l = next_line()
+while l.strip():
+    sys.stdout.write(l)
+    l = next_line()
+
+# One blank line in between headers and the start of the message
+while not l.strip():
+    l = next_line()
+
+sys.stdout.write('\n')
+sys.stdout.write(l)
+
+# Dump the rest straight through
+for l in sys.stdin.readlines():
+    sys.stdout.write(l)
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dotcss/default.css	Thu Jun 13 10:44:08 2013 -0400
@@ -0,0 +1,4 @@
+
+*:focus {
+    outline: 4px solid red !important;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dotcss/news.ycombinator.com.css	Thu Jun 13 10:44:08 2013 -0400
@@ -0,0 +1,2 @@
+
+.subtext > a + a + a { display: none; }
--- a/fish/config.fish	Thu Jun 13 10:42:18 2013 -0400
+++ b/fish/config.fish	Thu Jun 13 10:44:08 2013 -0400
@@ -1,7 +1,7 @@
 # Useful functions {{{
 
 function serve_this; python -m SimpleHTTPServer; end
-# alias fab 'fab -i ~/.ssh/stevelosh'
+function fabric; fab -i ~/.ssh/stevelosh $argv; end
 function oldgcc; set -g CC /usr/bin/gcc-4.0 $argv; end
 function tm; tmux -u2 $argv; end
 function c; clear; end
@@ -24,6 +24,12 @@
 function eg; vim ~/.gitconfig; end
 function es; vim ~/.slate; end
 
+function vup
+    set -x VAGRANT_LOG debug
+    vagrant up $argv
+    set -e VAGRANT_LOG
+end
+
 function fixopenwith
     /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
 end
--- a/mutt/muttrc	Thu Jun 13 10:42:18 2013 -0400
+++ b/mutt/muttrc	Thu Jun 13 10:44:08 2013 -0400
@@ -81,6 +81,8 @@
 set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
 alternative_order text/plain text/enriched text/html
 
+set display_filter = "clean_mail" # clean up shitty mail
+
 # }}}
 # Compose View Options {{{
 
@@ -101,6 +103,11 @@
 set forward_quote                    # include message in forwards
 
 # }}}
+# Attachment View Options {{{
+
+set attach_format = "[%D %t] %2n [%-7.7m/%10.10M] %.40d %> [%s] "
+
+# }}}
 # Headers {{{
 
 ignore *                                # ignore all headers
--- a/vim/bundle/django-custom/indent/htmldjango.vim	Thu Jun 13 10:42:18 2013 -0400
+++ b/vim/bundle/django-custom/indent/htmldjango.vim	Thu Jun 13 10:44:08 2013 -0400
@@ -52,7 +52,7 @@
     let tagend = '.*%}' . '.*'
 
     let blocktags = '\(block\|for\|if\|with\|autoescape\|comment\|filter\|spaceless\)'
-    let midtags = '\(empty\|else\)'
+    let midtags = '\(empty\|else\|elif\)'
 
     let pnb_blockstart = pnb =~# tagstart . blocktags . tagend
     let pnb_blockend   = pnb =~# tagstart . 'end' . blocktags . tagend
--- a/vim/bundle/django-custom/syntax/django.vim	Thu Jun 13 10:42:18 2013 -0400
+++ b/vim/bundle/django-custom/syntax/django.vim	Thu Jun 13 10:44:08 2013 -0400
@@ -23,7 +23,7 @@
 " syn keyword djangoStatement contained == != < > <= >=
 syn keyword djangoStatement contained and as block endblock by cycle debug else
 syn keyword djangoStatement contained extends filter endfilter firstof for
-syn keyword djangoStatement contained endfor if endif ifchanged endifchanged
+syn keyword djangoStatement contained endfor if elif endif ifchanged endifchanged
 syn keyword djangoStatement contained ifequal endifequal ifnotequal
 syn keyword djangoStatement contained endifnotequal in include load not now or
 syn keyword djangoStatement contained parsed regroup reversed spaceless