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 / 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 {} \;
@smaeda-ks
smaeda-ks / pre-request.js
Last active October 27, 2022 12:44
Postman OAuth signature generator (Pre-request Scripts)
/*
* This is a Pre-request script for Postman client to remediate OAuth 1.0a issue
* where certain request fails if it has a query parameter that includes some special characters.
*
* NOTE: This Pre-script is only available for "GET" request.
* There's a workaround for POST request.
* See: https://github.com/twitterdev/postman-twitter-ads-api/issues/2
*
* In order to use this Pre-request script, you need to change your "Authorization" type to
* "No Auth" only for the target request and do not apply to the top-level object.
@ezequiel9
ezequiel9 / Install Redis on Windows 10, PHP 7+
Created July 26, 2018 01:23
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
@ezequiel9
ezequiel9 / login-fb.html
Last active July 18, 2022 19:23
Login con Facebook en tu web Js. Simpe y facil.
// Previamente crear y configurar tu app desde facebook developers.
//insertá este código en tu página y agregá tu APP ID y listo!.. Lee los comentarios para mas detalles.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
@Aupajo
Aupajo / gist:4133515
Last active June 9, 2023 02:41
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