Skip to content

Instantly share code, notes, and snippets.

View rcubitto's full-sized avatar

raul rcubitto

View GitHub Profile
@mitchjam
mitchjam / gist:6f478301817771301ede4b93006be88a
Last active May 26, 2020 23:13
Use old versions of PHP with Laravel Valet via Homebrew

Homebrew removes old versions of php

And, since Laravel Valet uses Homebrew in it's valet use [email protected] command,
that means trying to install [email protected] now breaks because Homebrew removed it from it's core.

To install [email protected] with Homebrew

We need to tap a barrel that has the [email protected] formula.

brew tap exolnet/homebrew-deprecated

@hgrimelid
hgrimelid / php-dyld.md
Created August 17, 2018 07:36
php: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found

Reinstall PHP to fix, for me that's:

@calebporzio
calebporzio / composer_versions_cheatsheet.md
Last active September 30, 2024 08:58
Composer version symbol cheatsheet
...
"require": {
    "vendor/package": "1.3.2", // exactly 1.3.2 (exact)

    // >, <, >=, <= | specify upper / lower bounds
    "vendor/package": ">=1.3.2", // anything above or equal to 1.3.2
    "vendor/package": "<1.3.2", // anything below 1.3.2

 // * | wildcard
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote