Skip to content

Instantly share code, notes, and snippets.

View seyDoggy's full-sized avatar

Adam Merrifield seyDoggy

View GitHub Profile
@seyDoggy
seyDoggy / project-find-and-replace
Created August 31, 2013 12:59
Recursively find and replace in files
find . -name "*.js" -print0 | xargs -0 sed -i '' -e 's/foo/bar/g'

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

@seyDoggy
seyDoggy / .vimrc.bak
Created August 23, 2013 00:38
backup of some vim prefs
" My prefs
syntax on
set number
colorscheme solarized
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab
set shellcmdflag=-lc
set incsearch
set nowrap
set omnifunc=csscomplete#CompleteCSS
set guifont=mono\ 8
@seyDoggy
seyDoggy / VirtualHost
Last active December 21, 2015 03:39
Basic virtual host set up.
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
ServerName site2
DocumentRoot /sites/site2/www/
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
@seyDoggy
seyDoggy / CRIBBS.sh
Created August 14, 2013 17:24
I wrote this a long time ago. I've since moved on. But for posterity I've moved it off codecollector.net.
#!/bin/bash
#######################################################
# CRIBBS -- Cron Rsync Incremental Backup Bash Script #
# AUTHOR: Adam Merrifield <http://adam.merrifield.ca> #
# (and countless sources from the web) #
# DATE: 05-26-11 23:17 #
# VERSION: 1.0.0 #
#######################################################
@seyDoggy
seyDoggy / .serverstatus.sh
Last active October 16, 2022 11:02
Shell script to monitor HTTP server status and email me when the server is not responding.
#!/bin/bash
NAME=Adam
TESTDATE=`date "+%B %e, %Y"`
TESTTIME=`date "+%H:%M:%S"`
auto_init() {
runTest
}
runTest() {
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@seyDoggy
seyDoggy / gmail-search.txt
Created May 18, 2013 20:44
Gmail term for invoices
from:([email protected]) "residence_country: CA", "payer_state: ON" after:2010/12/31 before:2012/1/1
@seyDoggy
seyDoggy / PSPC Final.txt
Created April 10, 2013 23:14
PSPC Final Exam
Problem Solving and Programming Concepts
Adam Merrifield (2697795).
Final Exam
################################
start
@seyDoggy
seyDoggy / test-mail.html
Created April 10, 2013 14:54
Contents of ~/Desktop/test-mail.html for sendmail script.
<h3>This is a test</h3>
<p>Adam;</p>
<p>If you recieved this then you have sucessfully fixed the mail server on your Mac.</p>