Skip to content

Instantly share code, notes, and snippets.

View dccampbell's full-sized avatar

David C. Campbell dccampbell

View GitHub Profile
@dccampbell
dccampbell / osx_setup_homebrew.sh
Last active January 24, 2020 07:08 — forked from iainconnor/setup.sh
Mac OSX Setup
#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1
# Configure Homebrew
brew doctor
@dccampbell
dccampbell / server-logs-viewer.php
Last active August 9, 2017 01:07 — forked from pixeline/server-logs-viewer.php
This script presents the latest lines of your LAMP server log files, emulating the tail() function.
<?php
/*
* @name Server Logs Viewer
* @description Emulates the tail() function. View latest lines of log files in your browser.
* @author Alexandre Plennevaux (pixeline.be)
*/
/* Absolute local path to your server 'log' directory */
define('LOG_PATH', '/var/log');