Skip to content

Instantly share code, notes, and snippets.

carlosescri / 0001-PHP-5.6-LibSSL-1.1-compatibility.patch
Last active May 20, 2020
This is a backup of a patched formula to install PHP 5.6 in Mac OS X Catalina.
View 0001-PHP-5.6-LibSSL-1.1-compatibility.patch
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.
Upstream-Status: Deny []
Reason: As PHP 5.6 is no longer actively supported only security fixes
carlosescri /
Created Apr 27, 2020 — forked from rhukster/
Easy Brew PHP version switching
# 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_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
carlosescri / .profile
Last active Oct 22, 2018 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
View .profile
export GPG_TTY
View doofinder-add-to-cart-detail-extended.mustache
<button type="button" class="my-df-addtocart-btn" data-addtocart="{{id}}">
{{#translate}}Add To Cart{{/translate}}
carlosescri /
Created Nov 8, 2016 — forked from dergachev/
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

carlosescri / shadows.scss
Created May 24, 2016 — forked from paulmelnikow/shadows.scss
Sass Mixin: Google Material Design Shadow
View shadows.scss
* A mixin which helps you to add depth to elements according to the Google Material Design spec:
* Please note that the values given in the specification cannot be used as is. To create the same visual experience
* the blur parameter has to be doubled.
* Adapted from a LESS version at
* Original Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp)
carlosescri / doofinder_script.html
Last active Aug 29, 2015
Use `doofinder_script.html` if your website has its own search box. If not, configure your Doofinder layer based on `doofinder_script_alt.html` (this version of the script will automatically create a search box for you at the top of the page). You will find the search engine ID in the Doofinder control panel. Go to "My Account > Search Engines".
View doofinder_script.html
<script type="text/javascript">
var doofinder_script = '//';
(function(d,t){var f=d.createElement(t),s=d.getElementsByTagName(t)[0];f.async=1;
if(!doofinder){var doofinder={};}
// More options:
doofinder.options = {
carlosescri / gist:9109848
Last active Feb 13, 2020
Some commands to clean Ubuntu from trash, old kernels...
View gist:9109848
$ sudo apt-get autoclean
$ sudo apt-get clean
$ sudo apt-get autoremove
# if you installed the debian-goodies package...
$ dpigs -H -n 25
# You can install ncdu to find large files in a graphical interface through terminal
$ ncdu
carlosescri / commands.bash
Created Nov 23, 2013
Install timezones into MySQL server (linux)
View commands.bash
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql