Skip to content

Instantly share code, notes, and snippets.

View dospuntocero's full-sized avatar

Francisco arenas dospuntocero

View GitHub Profile
dospuntocero /
Last active April 22, 2020 00:03 — forked from sageworksstudio/
Ubuntu 18.04 LAMP setup

First create an ssh key

ssh-keygen -t rsa -C "your email"

Ubuntu 18.04 LAMP setup

SECURITY FIRST: Add a sudo user, require public key authentication and disable root login

Log into the remote machine as root: ssh root@

First, add the admin user.

dospuntocero /
Created January 26, 2020 19:16 — forked from cobyism/
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

namespace Roots\Sage\Nav;
use Roots\Sage\Utils;
* Cleaner walker for wp_nav_menu()
* Walker_Nav_Menu (WordPress default) example output:
dospuntocero / ACF Country List
Created May 23, 2019 02:18 — forked from yaronguez/ACF Country List
Country list formatted for Advanced Custom Fields select dropdown
afghanistan : Afghanistan
albania : Albania
algeria : Algeria
american_samoa : American Samoa
andorra : Andorra
angola : Angola
anguilla : Anguilla
antigua_and_barbuda : Antigua and Barbuda
argentina : Argentina
armenia : Armenia
dospuntocero / youtube-id.php
Created March 3, 2019 20:59 — forked from leogopal/youtube-id.php
PHP function to get youtube ID from URL
function get_youtube_video_ID($youtube_video_url) {
* Pattern matches

##Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

###Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Withing the terminal, Fire this command:

which php