mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-31 22:08:34 +00:00
Merge branch 'master' of gitosis@majnematic.com:davesdots
Conflicts: vimrc
This commit is contained in:
commit
ff723f8faa
10 changed files with 3082 additions and 201 deletions
|
@ -1,10 +1,23 @@
|
|||
#! /bin/sh
|
||||
# colors
|
||||
for dircolors in gdircolors dircolors ; do
|
||||
if ( command -v $dircolors >/dev/null 2>&1) ; then
|
||||
[ -f "${HOME}/.$dircolors" ] && eval `$dircolors -b "${HOME}/.$dircolors"` && break
|
||||
[ -f /etc/DIR_COLORS ] && eval `$dircolors -b /etc/DIR_COLORS` && break
|
||||
eval `$dircolors -b` && break
|
||||
if ( command -v $dircolors >/dev/null 2>&1 ) ; then
|
||||
dircolor_text=''
|
||||
if [ -f "${HOME}/.dir_colors" ] ; then
|
||||
dircolor_text=`cat "${HOME}/.dir_colors"`
|
||||
eval `$dircolors -b "${HOME}/.dir_colors"`
|
||||
elif [ -f /etc/DIR_COLORS ] ; then
|
||||
dircolor_text=`cat /etc/DIR_COLORS`
|
||||
eval `$dircolors -b /etc/DIR_COLORS`
|
||||
fi
|
||||
|
||||
if ( $dircolors --version 2>/dev/null | grep GNU >/dev/null 2>&1 ) ; then
|
||||
dircolor_text="${dircolor_text}\nSTICKY_OTHER_WRITABLE 01;04;34;40"
|
||||
dircolor_text="${dircolor_text}\nOTHER_WRITABLE 01;34;40"
|
||||
fi
|
||||
|
||||
eval `echo "${dircolor_text}" | $dircolors -b -`
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -79,4 +92,6 @@ alias du='du -h'
|
|||
|
||||
alias ping='ping -c4'
|
||||
|
||||
alias maketex="make -f ${HOME}/.latex/Makefile"
|
||||
|
||||
( command -v time >/dev/null 2>&1 ) && alias time='command time'
|
||||
|
|
172
dircolors
172
dircolors
|
@ -1,172 +0,0 @@
|
|||
# Configuration file for dircolors, a utility to help you set the
|
||||
# LS_COLORS environment variable used by GNU ls with the --color option.
|
||||
# Copyright (C) 1996, 1999-2008
|
||||
# Free Software Foundation, Inc.
|
||||
# Copying and distribution of this file, with or without modification,
|
||||
# are permitted provided the copyright notice and this notice are preserved.
|
||||
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
||||
# slackware version of dircolors) are recognized but ignored.
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM Eterm
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
# Below are the color init strings for the basic file types. A color init
|
||||
# string consists of one or more of the following numeric codes:
|
||||
# Attribute codes:
|
||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||
# Text color codes:
|
||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
||||
# Background color codes:
|
||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
||||
NORMAL 00 # global default, although everything should be something.
|
||||
FILE 00 # normal file
|
||||
DIR 01;34 # directory
|
||||
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
||||
# numerical value, the color is as for the file pointed to.)
|
||||
FIFO 40;33 # pipe
|
||||
SOCK 01;35 # socket
|
||||
DOOR 01;35 # door
|
||||
BLK 40;33;01 # block device driver
|
||||
CHR 40;33;01 # character device driver
|
||||
ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file
|
||||
# SETUID 37;41 # file that is setuid (u+s)
|
||||
# SETGID 30;43 # file that is setgid (g+s)
|
||||
STICKY_OTHER_WRITABLE 01;04;34;40 # dir that is sticky and other-writable (+t,o+w)
|
||||
OTHER_WRITABLE 01;34;40 # dir that is other-writable (o+w) and not sticky
|
||||
# STICKY 01;37;44 # dir with the sticky bit set (+t) and not other-writable
|
||||
# This is for files with execute permission:
|
||||
EXEC 01;32
|
||||
# List any file extensions like '.gz' or '.tar' that you would like ls
|
||||
# to colorize below. Put the extension, a space, and the color init string.
|
||||
# (and any comments you want to add after a '#')
|
||||
# If you use DOS-style suffixes, you may want to uncomment the following:
|
||||
.cmd 01;32 # executables (bright green)
|
||||
.exe 01;32
|
||||
.com 01;32
|
||||
.btm 01;32
|
||||
.bat 01;32
|
||||
# Or if you want to colorize scripts even if they do not have the
|
||||
# executable bit actually set.
|
||||
#.sh 01;32
|
||||
#.csh 01;32
|
||||
# archives or compressed (bright red)
|
||||
.tar 01;31
|
||||
.tgz 01;31
|
||||
.arj 01;31
|
||||
.taz 01;31
|
||||
.lzh 01;31
|
||||
.lzma 01;31
|
||||
.zip 01;31
|
||||
.z 01;31
|
||||
.Z 01;31
|
||||
.dz 01;31
|
||||
.gz 01;31
|
||||
.bz2 01;31
|
||||
.bz 01;31
|
||||
.tbz2 01;31
|
||||
.tz 01;31
|
||||
.deb 01;31
|
||||
.rpm 01;31
|
||||
.jar 01;31
|
||||
.rar 01;31
|
||||
.ace 01;31
|
||||
.zoo 01;31
|
||||
.cpio 01;31
|
||||
.7z 01;31
|
||||
.rz 01;31
|
||||
# image formats
|
||||
.jpg 01;35
|
||||
.jpeg 01;35
|
||||
.gif 01;35
|
||||
.bmp 01;35
|
||||
.pbm 01;35
|
||||
.pgm 01;35
|
||||
.ppm 01;35
|
||||
.tga 01;35
|
||||
.xbm 01;35
|
||||
.xpm 01;35
|
||||
.tif 01;35
|
||||
.tiff 01;35
|
||||
.png 01;35
|
||||
.svg 01;35
|
||||
.svgz 01;35
|
||||
.mng 01;35
|
||||
.pcx 01;35
|
||||
.mov 01;35
|
||||
.mpg 01;35
|
||||
.mpeg 01;35
|
||||
.m2v 01;35
|
||||
.mkv 01;35
|
||||
.ogm 01;35
|
||||
.mp4 01;35
|
||||
.m4v 01;35
|
||||
.mp4v 01;35
|
||||
.vob 01;35
|
||||
.qt 01;35
|
||||
.nuv 01;35
|
||||
.wmv 01;35
|
||||
.asf 01;35
|
||||
.rm 01;35
|
||||
.rmvb 01;35
|
||||
.flc 01;35
|
||||
.avi 01;35
|
||||
.fli 01;35
|
||||
.flv 01;35
|
||||
.gl 01;35
|
||||
.dl 01;35
|
||||
.xcf 01;35
|
||||
.xwd 01;35
|
||||
.yuv 01;35
|
||||
# audio formats
|
||||
.aac 00;36
|
||||
.au 00;36
|
||||
.flac 00;36
|
||||
.mid 00;36
|
||||
.midi 00;36
|
||||
.mka 00;36
|
||||
.mp3 00;36
|
||||
.mpc 00;36
|
||||
.ogg 00;36
|
||||
.ra 00;36
|
||||
.wav 00;36
|
|
@ -39,8 +39,7 @@ unless(eval {symlink('', ''); 1;}) {
|
|||
my %links = (
|
||||
screenrc => '.screenrc',
|
||||
toprc => '.toprc',
|
||||
dircolors => '.dircolors',
|
||||
gdircolors => '.gdircolors',
|
||||
dir_colors => '.dir_colors',
|
||||
lessfilter => '.lessfilter',
|
||||
|
||||
vim => '.vim',
|
||||
|
@ -78,6 +77,8 @@ my %links = (
|
|||
|
||||
caffeinate => 'bin/caffeinate',
|
||||
lock => 'bin/lock',
|
||||
|
||||
latex => '.latex',
|
||||
);
|
||||
|
||||
my $i = 0; # Keep track of how many links we added
|
||||
|
|
137
krb5.conf
Normal file
137
krb5.conf
Normal file
|
@ -0,0 +1,137 @@
|
|||
[libdefaults]
|
||||
default_realm = ACM.UIUC.EDU
|
||||
|
||||
# The following krb5.conf variables are only for MIT Kerberos.
|
||||
krb4_config = /etc/krb.conf
|
||||
krb4_realms = /etc/krb.realms
|
||||
kdc_timesync = 1
|
||||
ccache_type = 4
|
||||
forwardable = true
|
||||
proxiable = true
|
||||
|
||||
# The following encryption type specification will be used by MIT Kerberos
|
||||
# if uncommented. In general, the defaults in the MIT Kerberos code are
|
||||
# correct and overriding these specifications only serves to disable new
|
||||
# encryption types as they are added, creating interoperability problems.
|
||||
#
|
||||
# Thie only time when you might need to uncomment these lines and change
|
||||
# the enctypes is if you have local software that will break on ticket
|
||||
# caches containing ticket encryption types it doesn't know about (such as
|
||||
# old versions of Sun Java).
|
||||
|
||||
# default_tgs_enctypes = des3-hmac-sha1
|
||||
# default_tkt_enctypes = des3-hmac-sha1
|
||||
# permitted_enctypes = des3-hmac-sha1
|
||||
|
||||
# The following libdefaults parameters are only for Heimdal Kerberos.
|
||||
v4_instance_resolve = false
|
||||
v4_name_convert = {
|
||||
host = {
|
||||
rcmd = host
|
||||
ftp = ftp
|
||||
}
|
||||
plain = {
|
||||
something = something-else
|
||||
}
|
||||
}
|
||||
fcc-mit-ticketflags = true
|
||||
|
||||
[realms]
|
||||
ACM.UIUC.EDU = {
|
||||
kdc = kerberos.acm.uiuc.edu
|
||||
kdc = kerberos-1.acm.uiuc.edu
|
||||
admin_server = kerberos.acm.uiuc.edu
|
||||
default_domain = acm.uiuc.edu
|
||||
}
|
||||
ATHENA.MIT.EDU = {
|
||||
kdc = kerberos.mit.edu:88
|
||||
kdc = kerberos-1.mit.edu:88
|
||||
kdc = kerberos-2.mit.edu:88
|
||||
admin_server = kerberos.mit.edu
|
||||
default_domain = mit.edu
|
||||
}
|
||||
MEDIA-LAB.MIT.EDU = {
|
||||
kdc = kerberos.media.mit.edu
|
||||
admin_server = kerberos.media.mit.edu
|
||||
}
|
||||
ZONE.MIT.EDU = {
|
||||
kdc = casio.mit.edu
|
||||
kdc = seiko.mit.edu
|
||||
admin_server = casio.mit.edu
|
||||
}
|
||||
MOOF.MIT.EDU = {
|
||||
kdc = three-headed-dogcow.mit.edu:88
|
||||
kdc = three-headed-dogcow-1.mit.edu:88
|
||||
admin_server = three-headed-dogcow.mit.edu
|
||||
}
|
||||
CSAIL.MIT.EDU = {
|
||||
kdc = kerberos-1.csail.mit.edu
|
||||
kdc = kerberos-2.csail.mit.edu
|
||||
admin_server = kerberos.csail.mit.edu
|
||||
default_domain = csail.mit.edu
|
||||
krb524_server = krb524.csail.mit.edu
|
||||
}
|
||||
IHTFP.ORG = {
|
||||
kdc = kerberos.ihtfp.org
|
||||
admin_server = kerberos.ihtfp.org
|
||||
}
|
||||
GNU.ORG = {
|
||||
kdc = kerberos.gnu.org
|
||||
kdc = kerberos-2.gnu.org
|
||||
kdc = kerberos-3.gnu.org
|
||||
admin_server = kerberos.gnu.org
|
||||
}
|
||||
1TS.ORG = {
|
||||
kdc = kerberos.1ts.org
|
||||
admin_server = kerberos.1ts.org
|
||||
}
|
||||
GRATUITOUS.ORG = {
|
||||
kdc = kerberos.gratuitous.org
|
||||
admin_server = kerberos.gratuitous.org
|
||||
}
|
||||
DOOMCOM.ORG = {
|
||||
kdc = kerberos.doomcom.org
|
||||
admin_server = kerberos.doomcom.org
|
||||
}
|
||||
ANDREW.CMU.EDU = {
|
||||
kdc = vice28.fs.andrew.cmu.edu
|
||||
kdc = vice2.fs.andrew.cmu.edu
|
||||
kdc = vice11.fs.andrew.cmu.edu
|
||||
kdc = vice12.fs.andrew.cmu.edu
|
||||
admin_server = vice28.fs.andrew.cmu.edu
|
||||
default_domain = andrew.cmu.edu
|
||||
}
|
||||
CS.CMU.EDU = {
|
||||
kdc = kerberos.cs.cmu.edu
|
||||
kdc = kerberos-2.srv.cs.cmu.edu
|
||||
admin_server = kerberos.cs.cmu.edu
|
||||
}
|
||||
DEMENTIA.ORG = {
|
||||
kdc = kerberos.dementia.org
|
||||
kdc = kerberos2.dementia.org
|
||||
admin_server = kerberos.dementia.org
|
||||
}
|
||||
stanford.edu = {
|
||||
kdc = krb5auth1.stanford.edu
|
||||
kdc = krb5auth2.stanford.edu
|
||||
kdc = krb5auth3.stanford.edu
|
||||
master_kdc = krb5auth1.stanford.edu
|
||||
admin_server = krb5-admin.stanford.edu
|
||||
default_domain = stanford.edu
|
||||
}
|
||||
|
||||
[domain_realm]
|
||||
.mit.edu = ATHENA.MIT.EDU
|
||||
mit.edu = ATHENA.MIT.EDU
|
||||
.media.mit.edu = MEDIA-LAB.MIT.EDU
|
||||
media.mit.edu = MEDIA-LAB.MIT.EDU
|
||||
.csail.mit.edu = CSAIL.MIT.EDU
|
||||
csail.mit.edu = CSAIL.MIT.EDU
|
||||
.whoi.edu = ATHENA.MIT.EDU
|
||||
whoi.edu = ATHENA.MIT.EDU
|
||||
.stanford.edu = stanford.edu
|
||||
.slac.stanford.edu = SLAC.STANFORD.EDU
|
||||
|
||||
[login]
|
||||
krb4_convert = true
|
||||
krb4_get_tickets = false
|
2880
latex/Makefile
Normal file
2880
latex/Makefile
Normal file
File diff suppressed because it is too large
Load diff
21
latex/mathdefs.sty
Normal file
21
latex/mathdefs.sty
Normal file
|
@ -0,0 +1,21 @@
|
|||
\usepackage{amsmath}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{amsthm}
|
||||
\usepackage{graphicx}
|
||||
\usepackage[margin=1in]{geometry}
|
||||
\usepackage{tikz}
|
||||
\pagestyle{fancy}
|
||||
|
||||
%some commands for convenience
|
||||
\newcommand{\DFA}{\textsf{DFA} }
|
||||
\newcommand{\NFA}{\textsf{NFA} }
|
||||
\newcommand{\CFG}{\textsf{CFG} }
|
||||
%sets
|
||||
\newcommand{\Reals}{\mathbb{R}}
|
||||
\newcommand{\Naturals}{\mathbb{N}}
|
||||
\newcommand{\Rationals}{\mathbb{Q}}
|
||||
\newcommand{\Integers}{\mathbb{Z}}
|
||||
|
||||
\newcommand{\set}[1]{\{#1\}}
|
||||
|
8
sh/title
8
sh/title
|
@ -1,8 +0,0 @@
|
|||
if [ $USER = root ] ; then
|
||||
BASE="#"
|
||||
else
|
||||
BASE="$"
|
||||
fi
|
||||
|
||||
PS1="${USER} ${BASE} "
|
||||
export PS1
|
2
toprc
2
toprc
|
@ -2,7 +2,7 @@ RCfile for "top with windows" # shameless braggin'
|
|||
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
|
||||
Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
|
||||
winflags=65081, sortindx=10, maxtasks=0
|
||||
summclr=4, msgsclr=3, headclr=4, taskclr=4
|
||||
summclr=2, msgsclr=3, headclr=2, taskclr=2
|
||||
Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
|
||||
winflags=62777, sortindx=0, maxtasks=0
|
||||
summclr=6, msgsclr=6, headclr=7, taskclr=6
|
||||
|
|
35
vimrc
35
vimrc
|
@ -226,12 +226,17 @@ if has('autocmd')
|
|||
endfun
|
||||
|
||||
autocmd FileType c,cpp :call <SID>cabbrev()
|
||||
|
||||
if filereadable(glob('~/.latex/Makefile')) && !filereadable(getcwd() . "/Makefile")
|
||||
autocmd FileType tex set makeprg=make\ -f\ ~/.latex/Makefile
|
||||
endif
|
||||
endif
|
||||
|
||||
" make tab reindent in normal mode
|
||||
autocmd FileType c,cpp,cs,java nmap <Tab> =0<CR>
|
||||
endif
|
||||
|
||||
|
||||
" tab indents selection
|
||||
vmap <silent> <Tab> >gv
|
||||
|
||||
|
@ -329,18 +334,20 @@ if has('eval')
|
|||
endif
|
||||
|
||||
" ---- OmniCpp ----
|
||||
if has('autocmd')
|
||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||
if v:version >= 700
|
||||
if has('autocmd')
|
||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||
endif
|
||||
|
||||
set completeopt=menu,menuone,longest
|
||||
|
||||
let OmniCpp_MayCompleteDot = 1 " autocomplete with .
|
||||
let OmniCpp_MayCompleteArrow = 1 " autocomplete with ->
|
||||
let OmniCpp_MayCompleteScope = 1 " autocomplete with ::
|
||||
let OmniCpp_SelectFirstItem = 2 " select first item (but don't insert)
|
||||
let OmniCpp_NamespaceSearch = 2 " search namespaces in this and included files
|
||||
let OmniCpp_ShowPrototypeInAbbr = 1 " show function prototype (i.e. parameters) in popup window
|
||||
map <C-F12> :!$HOME/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
|
||||
" add current directory's generated tags file to available tags
|
||||
set tags+=./tags
|
||||
endif
|
||||
|
||||
set completeopt=menu,menuone,longest
|
||||
|
||||
let OmniCpp_MayCompleteDot = 1 " autocomplete with .
|
||||
let OmniCpp_MayCompleteArrow = 1 " autocomplete with ->
|
||||
let OmniCpp_MayCompleteScope = 1 " autocomplete with ::
|
||||
let OmniCpp_SelectFirstItem = 2 " select first item (but don't insert)
|
||||
let OmniCpp_NamespaceSearch = 2 " search namespaces in this and included files
|
||||
let OmniCpp_ShowPrototypeInAbbr = 1 " show function prototype (i.e. parameters) in popup window
|
||||
map <C-F12> :!etags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
|
||||
" add current directory's generated tags file to available tags
|
||||
set tags+=./tags
|
||||
|
|
Loading…
Add table
Reference in a new issue