Skip to content

Instantly share code, notes, and snippets.

View gjhuerte's full-sized avatar
😳
asdfghjkl

Gabriel Jay Huerte gjhuerte

😳
asdfghjkl
View GitHub Profile
@gjhuerte
gjhuerte / gh-pages-deploy.md
Created May 9, 2019 05:01 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

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).

@gjhuerte
gjhuerte / homestead-dynamodb-setup.sh
Last active January 31, 2020 01:20
Installing DynamoDB on Homestead
# We need to update first the repository
# to check for missing packages etc..
#
# Run the following command if ever possible
sudo apt update;
# Install the necessary packages for the dynamodb
# unzip - unzips the zip file for us to open it up
# openjdk - java package for us to run jar files
#
@gjhuerte
gjhuerte / laravel-facades.md
Last active February 19, 2020 00:32
Laravel Facades

Create a class and bind it to service container to initialize it

<?php
    class Fish 
    {
        public function swim()
        {
            return 'swimming';
        }