Skip to content

Instantly share code, notes, and snippets.

View lynxtdc's full-sized avatar

Paul McGrane lynxtdc

View GitHub Profile
@lynxtdc
lynxtdc / gist:456510adfa9b19168ece04a73ebbe579
Created July 27, 2018 13:41
Down and Dirty Guide to Installing PHP Mess Detector on OS-X and Integrating with PHPStorm
Download PHP Mess Detector PHAR
wget -c http://static.phpmd.org/php/latest/phpmd.phar
Move the PHAR and "install it"
sudo mv phpmd.phar /usr/local/bin/phpmd
sudo chmod +x /usr/local/bin/phpmd
Check to make sure it's running on your system
alias pa="php artisan"
alias par="php artisan routes"
alias pam="php artisan migrate"
alias pam:r="php artisan migrate:refresh"
alias pacc="php artisan cache:clear"
alias pamr="php artisan migrate:rollback"
alias pam:roll="php artisan migrate:rollback"
alias pam:rs="php artisan migrate:refresh --seed"
alias padbi="php artisan db:import"
alias pda="php artisan dumpautoload"
@lynxtdc
lynxtdc / gist:49934ad94de73529b918
Created January 11, 2016 19:24
Cold Brew Coffee
What you need:
1 liter French Press
Coffee
Filtered (I prefer filter/ionzied water)
Filter and filter basket (optional)
Glass storage container
Process:
Measure 1 and 1/3 cup of ground coffee (I normally do a scant measurement) into the french press
Fill with water
Verifying that +lynxtdc is my blockchain ID. https://onename.com/lynxtdc
@lynxtdc
lynxtdc / gist:ae6f0c52d4c515ebbba8
Created November 15, 2015 23:05
Getting Node running on Windows with Homestead
I did a fair amount of poking around with this issue and found the following combination of suggestions to work for me.
I am running Windows 7 Professional 64 bit, Homestead 2.0 and install all my projects in a "code/project name" directory
Seems the main reason for NPM not working on Windows machines is it runs up against the file name character limit in Windows even though
you are installing on your vagrant/homestead box.
First I added this to my homestead.rb file:
config.vm.provider "virtualbox" do |vb| vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
@lynxtdc
lynxtdc / gist:024cd7810afa053e3e13
Created October 20, 2015 22:03
Quick Start for Laravel on Homestead
Assumes Homestead 2.x
Start Homestead
SSH to Vagrant
Create new directory in code directory
cd to new directory
run composer create-project laravel/laravel --prefer-dist .
Update Homestead Yaml (be sure to add to aliases array)
Update HOSTS file
Run vagrant reload --provision