Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
15  .bash_aliases
@@ -41,6 +41,21 @@ function ..() {
41 41
     cd $dir >& /dev/null;
42 42
 }
43 43
 
  44
+# generate a random password
  45
+function gpw() {
  46
+    local length=$1
  47
+    [ -z "$length" ] && length=20
  48
+    case `uname` in
  49
+        Darwin)
  50
+            LC_CTYPE=C tr -dc "A-Za-z0-9&^%$#@" < /dev/urandom | head -c ${length} | xargs
  51
+            ;;
  52
+
  53
+        *)
  54
+            tr -dc "A-Za-z0-9&^%$#@" < /dev/urandom | head -c ${length} | xargs
  55
+            ;;
  56
+    esac
  57
+}
  58
+
44 59
 # create directories and cd to the first one
45 60
 function mkcd() { [ -n "$1" ] && mkdir -p "$@" && cd "$1"; }
46 61
 
4  .vim/ftplugin/php.vim
@@ -2,7 +2,9 @@
2 2
 " Bill Israel <bill.israel@gmail.com>
3 3
 
4 4
 " Check syntax
5  
-nnoremap <silent> <Leader>vv :!php -l %<CR>
  5
+:setlocal makeprg=php\ -l\ %
  6
+:setlocal errorformat=%m\ in\ %f\ on\ line\ %l
  7
+nnoremap <silent> <Leader>vv :sil! make<CR>:cwindow<CR>
6 8
 
7 9
 " Align
8 10
 nnoremap <silent> <Leader>va vi(:Align=><CR>

No commit comments for this range

Something went wrong with that request. Please try again.