Skip to content

Instantly share code, notes, and snippets.

View ezequiel9's full-sized avatar
:octocat:
Coding

Ezequiel Fernandez ezequiel9

:octocat:
Coding
View GitHub Profile
@ezequiel9
ezequiel9 / README.txt
Created April 21, 2021 09:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@ezequiel9
ezequiel9 / Update composer from 1.x to 2.x Laragon.txt
Created December 22, 2020 04:46
Update composer from 1.x to 2.x Laragon
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 December 8, 2020 10:25 — forked from Aupajo/gist:4133515
A few of my favourite Git settings
# 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 December 3, 2020 03:37 — forked from Zodiac1978/.htaccess
Safer WordPress with these .htaccess additions
# 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 November 7, 2020 23:12
How to Upload an SSH Public Key to an Existing Droplet | Digital Ocean
cat ~/.ssh/id_rsa.pub | ssh user@droplet-ip "cat >> ~/.ssh/authorized_keys"
@ezequiel9
ezequiel9 / wget-whole-website
Created April 26, 2020 07:19
Use Wget to download a entire website
wget -r -nc -p --html-extension -k site.com
@ezequiel9
ezequiel9 / how to install wp cli in windows 10.md
Last active August 15, 2019 02:33
How to install WP-CLI in Windows 10.

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 November 8, 2020 08:19
How to proper set up Laravel Permissions
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 March 25, 2019 04:23
Custom Sort Boostrap Table Vue | prop sort-compare
# 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"

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.