Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Coding

Ezequiel Fernandez ezequiel9

:octocat:
Coding
View GitHub Profile
@ezequiel9
ezequiel9 / Update composer from 1.x to 2.x Laragon.txt
Created Dec 22, 2020
Update composer from 1.x to 2.x Laragon
View Update composer from 1.x to 2.x Laragon.txt
Find where your composer file is which composer
For me, it was in
/c/Users/USERNAME/AppData/Roaming/Composer/vendor/bin/composer
Open a terminal in that directory
follow the steps here - Installastion Steps
composer -V should now return 2.x
@ezequiel9
ezequiel9 / gist:29f6bfedd98959dbe1838becced44bdf
Created Dec 8, 2020 — forked from Aupajo/gist:4133515
A few of my favourite Git settings
View gist:29f6bfedd98959dbe1838becced44bdf
# Colours
git config --global color.status auto
git config --global color.branch auto
git config --global color.diff auto
# Short-hand aliases
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.co checkout
git config --global alias.br branch
@ezequiel9
ezequiel9 / .htaccess
Created Dec 3, 2020 — forked from Zodiac1978/.htaccess
Safer WordPress with these .htaccess additions
View .htaccess
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>
@ezequiel9
ezequiel9 / .sh
Created Nov 7, 2020
How to Upload an SSH Public Key to an Existing Droplet | Digital Ocean
View .sh
cat ~/.ssh/id_rsa.pub | ssh user@droplet-ip "cat >> ~/.ssh/authorized_keys"
@ezequiel9
ezequiel9 / wget-whole-website
Created Apr 26, 2020
Use Wget to download a entire website
View wget-whole-website
wget -r -nc -p --html-extension -k site.com
@ezequiel9
ezequiel9 / how to install wp cli in windows 10.md
Last active Aug 15, 2019
How to install WP-CLI in Windows 10.
View how to install wp cli in windows 10.md

WP-CLI is a tool for controlling WordPress through a console window.

1. Install Composer if you don't have it globally.

Go to this link and follow the instructions. https://getcomposer.org/doc/00-intro.md#installation-windows (this is not a guide to install composer :))

C:\Users\username>composer -V

Composer version xxxxxxxxxx

@ezequiel9
ezequiel9 / laravel-permissions.txt
Last active Nov 8, 2020
How to proper set up Laravel Permissions
View laravel-permissions.txt
Your user as owner
I prefer to own all the directories and files (it makes working with everything much easier), so I do:
# sudo chown -R my-user:www-data /path/to/your/laravel/root/directory
Then I give both myself and the webserver permissions:
# sudo find /path/to/your/laravel/root/directory -type f -exec chmod 664 {} \;
# sudo find /path/to/your/laravel/root/directory -type d -exec chmod 775 {} \;
@ezequiel9
ezequiel9 / customsort.js
Created Mar 25, 2019
Custom Sort Boostrap Table Vue | prop sort-compare
View customsort.js
# Your table will have something like this
<b-table show-empty
stacked="sm"
:items="items"
:fields="fields"
:current-page="currentPage"
:per-page="perPage"
:filter="filter"
@filtered="onFiltered"
@row-clicked="editUser"
View bus-derby.markdown

Bus Derby

A 3D vehicle derby video game rendered in three.js and run on a physi.js physics engine. UV maps designed in Adobe Illustrator; meshes created in Blender and imported as glTF.

Also wrote a tutorial on implementing complex 3D shapes like these, check it out. :)

A Pen by Matthew Main on CodePen.

@ezequiel9
ezequiel9 / Install Redis on Windows 10, PHP 7+
Created Jul 26, 2018
Install Redis on Windows 10, PHP 7+
View Install Redis on Windows 10, PHP 7+
Install Redis extension on your pc
Download the CORRECT version the DDL from the following link
https://pecl.php.net/package/redis/4.1.0/windows
Put the dll in the correct folder
Wamp -> C:\wamp\bin\php\php-XXXX\ext
Laragon -> C:\laragon\bin\php\php-XXX\ext
Edit the php.ini file adding