Skip to content

Instantly share code, notes, and snippets.

View carlosrenatohr's full-sized avatar
💭
I may be slow to respond.

Carlos Hernandez carlosrenatohr

💭
I may be slow to respond.
  • Managua, Nicaragua
View GitHub Profile
@RodolfoFerro
RodolfoFerro / introducci-n-a-las-neuronas-artificiales.ipynb
Created May 26, 2021 01:44
Introducción a las neuronas artificiales
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fazni
fazni / New PHP 8 features.md
Last active December 31, 2021 15:31
Cheat sheet - New PHP 8 features

1. Named arguments

<?php
// Positional arguments.
$pieces = explode('-', 'piece1-piece2-piece3');
 
// Named arguments.
$pieces = explode(delimiter: '-', string: 'piece1-piece2-piece3');
// or
name age gender country email
0 Mr Jerome Thomas 73 male United States jerome.thomas@example.com
1 Mr Gary Berry 70 male United Kingdom gary.berry@example.com
2 Mr Noham Dubois 40 male France noham.dubois@example.com
3 Mrs Naja Johansen 63 female Denmark naja.johansen@example.com
4 Mr Damien Marchand 61 male France damien.marchand@example.com
5 Mr Harri Althoff 56 male Germany harri.althoff@example.com
6 Mr Noah Olsen 40 male Denmark noah.olsen@example.com
7 Ms Britta Weinert 35 female Germany britta.weinert@example.com
8 Mr Jakob Russell 44 male Ireland jakob.russell@example.com
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active October 5, 2025 11:57 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
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)
@shortjared
shortjared / list.txt
Last active October 22, 2025 13:34
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@carloslopez1990
carloslopez1990 / bcn.php
Created September 18, 2017 05:29
bcn.php
<?php
define('BCN_URL', 'http://www.bcn.gob.ni/estadisticas/mercados_cambiarios/tipo_cambio/cordoba_dolar/mes.php');
function getCambioMes( $mes, $anio ) {
if( strlen((int)$mes) == 1 )
$mes = '0'.$mes;
preg_match_all('|<td><div align="center">(.*?)\-(.*?)</div></td>\s*<td><div align="center">(.*?)</div></td>|is',
file_get_contents(BCN_URL.'?mes='.$mes.'&anio='.$anio), $matches);
$ret = array();
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 3, 2025 16:39
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@flesler
flesler / post-checkout
Created April 19, 2017 14:02 — forked from betorobson/post-checkout
git hook to run a command after `git pull` and `git checkout` if a specified file was change for example, package.json or bower.json
#!/usr/bin/env bash
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
check_run package.json "npm prune && npm install"
@santoshachari
santoshachari / Laravel PHP7 LEMP AWS.md
Last active March 21, 2025 14:46
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip