Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul McGrane lynxtdc

View GitHub Profile
@lynxtdc
lynxtdc / gist:456510adfa9b19168ece04a73ebbe579
Created Jul 27, 2018
Down and Dirty Guide to Installing PHP Mess Detector on OS-X and Integrating with PHPStorm
View gist:456510adfa9b19168ece04a73ebbe579
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
View gist:41041cea27b29af8863870ce98a135b5
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"
View gist:49934ad94de73529b918
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
View gist:27acd65004cc6bae990c
Verifying that +lynxtdc is my blockchain ID. https://onename.com/lynxtdc
@lynxtdc
lynxtdc / gist:ae6f0c52d4c515ebbba8
Created Nov 15, 2015
Getting Node running on Windows with Homestead
View gist:ae6f0c52d4c515ebbba8
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 Oct 20, 2015
Quick Start for Laravel on Homestead
View gist:024cd7810afa053e3e13
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