Skip to content

Instantly share code, notes, and snippets.

@dnshl
dnshl / .vimrc
Created June 2, 2019 21:34
vimrc
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
filetype off " required for vundle
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
@dnshl
dnshl / checkSite.sh
Created February 29, 2012 13:29
Bash script checks http status code
#!/bin/bash
URL=$1
RESPONSE=$(curl --write-out %{http_code} --silent --output /dev/null ${URL})
if [ $RESPONSE -ne 200 ]
then
echo $1 is down
fi