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 / 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';
        }
@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 / 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 / gist:ee7e4b3f71ce18c167bb8f54ddcec893
Created January 3, 2019 02:06 — forked from JeffreyWay/gist:1525217
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
@gjhuerte
gjhuerte / android-development-fix.txt
Created November 16, 2018 16:48
android-development-fix
Open development menu: ctr: + m
https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows
I've encountered the same issue while following the React Native tutorial (developing on Linux and targeting Android).
This issue helped me resolve the problem in following steps.
(in project directory) mkdir android/app/src/main/assets
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
@gjhuerte
gjhuerte / posting-in-facebook-api.txt
Created November 15, 2018 10:04
posting-in-facebook-api
https://developers.facebook.com/docs/pages/publishing/
1. Click the Start button.
2. Type gpedit.msc and press Enter.
3. Go to Local Computer Policy > Administrative Templates > Windows Components then select Windows Defender.
4. On the right-side pane of the window, double-click Turn off Windows Defender.
5. Set the configuration to Disabled.
6. Click OK to save the changes and restart your computer.
@gjhuerte
gjhuerte / adding-pc-ssh-github
Created September 6, 2018 07:26
Adding a workstation via SSH
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
@gjhuerte
gjhuerte / git-credentials-location.txt
Last active September 6, 2018 07:25
Git credentials location
Control Panel\User Accounts\Credential Manager