These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew and PECL (comes with PHP)
# PHP 7.3
/* | |
See dev dependencies https://gist.github.com/isimmons/8927890 | |
Compiles sass to compressed css with autoprefixing | |
Compiles coffee to javascript | |
Livereloads on changes to coffee, sass, and blade templates | |
Runs PHPUnit tests | |
Watches sass, coffee, blade, and phpunit | |
Default tasks sass, coffee, phpunit, watch | |
*/ |
require "zlib" | |
if(ARGV.length != 2) | |
puts "usage: ruby zdist.rb file1 file2" | |
else | |
f1 = File.read(ARGV[0]) | |
f2 = File.read(ARGV[1]) | |
f1d = Zlib::Deflate.deflate(f1) | |
f2d = Zlib::Deflate.deflate(f2) | |
compressed = Zlib::Deflate.deflate(f1+f2) |
"""""""""""""""""" | |
" Vundle options | |
""""""""""""""""" | |
set nocompatible " be iMproved, required | |
filetype off " required | |
:let mapleader = "-" " Maps - as leader character | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim |
<?php | |
/* * ** | |
* | |
* This script converts an existing MySQL database to migrations in Laravel 4. | |
* | |
* 1. Place this file inside app/controllers/ | |
* | |
* 2. In this file, edit the index() method to customize this script to your needs. | |
* - inside $migrate->ignore(), you pass in an array of table |
ag "sometext" --nogroup | awk '{print substr($1,1,index($1,":")-1);}' | xargs -I {} sed -i .bak -e 's/sometext/anothertext/g' {} |
package main | |
import "fmt" | |
type F func(i int) int | |
func (f F) compose(inner F) F { | |
return func(i int) int { return f(inner(i)) } | |
} |
class Card | |
SUITS = %w(S H D C).freeze | |
RANKS = %w(2 3 4 5 6 7 8 9 10 J Q K A).freeze | |
RANKS_SCORES = RANKS.each_with_index.to_h | |
include Comparable | |
attr_reader :suit, :rank | |
def initialize(suit, rank) |
DOMAIN ?= mydomain.com | |
COUNTRY := IT | |
STATE := IT | |
COMPANY := Evil Corp. | |
# credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309 | |
# usage: |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" | |
gem "rails", "5.0.2" |
These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew and PECL (comes with PHP)
# PHP 7.3