This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
filetype plugin indent on | |
syntax on | |
set tabstop=4 | |
set shiftwidth=4 | |
set showmatch | |
set number | |
map <F3> <Esc>gg=G<CR> | |
imap <F3> <Esc>gg=G<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Post update hook to be added to the dir.git repository | |
# This hook pulls the master from the repo into the working web app git repo | |
echo | |
echo "Pulling changes into deployment repository" | |
echo | |
git --git-dir /path/to/webapp/dir/.git --work-tree /path/to/webapp/dir/ pull origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddHandler fcgid-script .fcgi | |
AddHandler cgi-script .cgi | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep generated 802-1x.log |awk '{print $11}'|while read line; do echo -n "$line, " ;o=`grep $line 802-1x.log|grep "END OUTBOUND"|awk '{print $11}'`;echo -n "$o, ";i=`grep $line 802-1x.log|grep "END INBOUND"|awk '{print $11}'`;echo $i;done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOGFILE=logs/802-1x.log | |
BEGIN_LOG="START OUTBOUND" | |
END_LOG="END OUTBOUND" | |
rm -f begins.log | |
rm -f ends.log | |
rm -f unparseable.log | |
rm -f radius_times.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin on | |
syntax on | |
set tabstop=4 | |
set shiftwidth=4 | |
set showmatch | |
set number | |
map <F3> <Esc>gg=G<CR> | |
imap <F3> <Esc>gg=G<CR> | |
map <F5> :w<CR>:!node %:p<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES=`find . -iregex '.*JPG'` | |
for file in $FILES | |
do | |
lastmod=`exiftool $file | grep 'Create Date' | awk '{print $4}' | sed 's/:/-/g'| sort | uniq` | |
echo "$file, Last Modification Date: $lastmod-" | |
month=`date --date="$lastmod" "+%B%Y"` | |
if [ ! -d $month ];then | |
mkdir $month |