Skip to content

Instantly share code, notes, and snippets.

View carlosescri's full-sized avatar

Carlos Escribano carlosescri

View GitHub Profile
@carlosescri
carlosescri / .profile
Last active October 22, 2018 16:47 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
GPG_TTY=$(tty)
export GPG_TTY
@carlosescri
carlosescri / php-switch.sh
Created April 27, 2020 09:19 — forked from rhukster/sphp.sh
Easy Brew PHP version switching
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
osx_patch_version=${osx_patch_version:-0}
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
@carlosescri
carlosescri / 0001-PHP-5.6-LibSSL-1.1-compatibility.patch
Last active May 20, 2020 05:54
This is a backup of a patched formula to install PHP 5.6 in Mac OS X Catalina.
Subject: [PATCH] PHP 5.6 - LibSSL 1.1 compatibility
This patch does not try to backport the 7.1 openssl module, it is the
improved version of the 5.6 original openssl module.
https://github.com/oerdnj/deb.sury.org/issues/566
http://zettasystem.com/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch
Upstream-Status: Deny [https://github.com/php/php-src/pull/2667]
Reason: As PHP 5.6 is no longer actively supported only security fixes