Skip to content

Instantly share code, notes, and snippets.

View guiliredu's full-sized avatar
🚀
Working

Guilherme Dias Redü guiliredu

🚀
Working
View GitHub Profile
@guiliredu
guiliredu / 1-input-recaptcha.blade.php
Created June 27, 2019 23:34
Laravel recaptcha blade component
<div class="input-captcha">
<div class="g-recaptcha" data-sitekey="{{ config('app.recaptcha_key') }}"></div>
</div>
@push('scripts')
<script src='https://www.google.com/recaptcha/api.js'></script>
@endpush
@guiliredu
guiliredu / CSS-2019.md
Created June 7, 2019 20:00
CSS 2019 Studies
@guiliredu
guiliredu / Sublime-Configuration.md
Last active May 29, 2019 23:21
Sublime Configuration

Sublime Configuration

Packages

  • Fileicons
  • Laravel Blade Highlighter
  • Vue Syntax Highlight
  • Sass
  • Emmet
  • Emmet CSS Snippets
@guiliredu
guiliredu / #ServerConfigLemp.md
Last active February 19, 2019 14:27
Server Management Annotations

Server configuration - Basics and LEMP

Installation - Server basics

  • sudo add-apt-repository -y ppa:nginx/development - repository for latest nginx
  • sudo add-apt-repository -y ppa:ondrej/php - repository for latest php
  • sudo add-apt-repository -y ppa:chris-lea/redis-server - for latest redis
  • sudo apt-get update to update the server packages
  • sudo apt-get install -y git tmux vim curl wget zip unzip htop - basic commands and softwares
@guiliredu
guiliredu / SolidPrinciples.md
Created October 11, 2018 17:22
SOLID Principles

Solid Principles

Single Responsibility Principle

A class should have only one job.

Open-Closed Principle

Software entities (Classes, modules, functions) should be open for extension, not modification.

@guiliredu
guiliredu / deploy.sh
Last active August 27, 2018 12:02
Laravel - Deploy scripts
echo '-- Shutdown the laravel app'
php artisan down
echo '-- Pulling from git'
git pull
echo '-- Storage permissions'
#find storage -type f -exec chmod 664 {} \;
#find storage -type d -exec chmod 775 {} \;
@guiliredu
guiliredu / PHPDocExample.php
Last active August 23, 2018 17:25
Example of a PHP Class with Doc Block annotation
<?php
/**
* This class acts as an example on where to position a DocBlock.
*
* A blank line must be place after each paragraph. A title and a description
* can be add. Multiple paragraph descriptions can be used.
*
* @see https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md
* @see http://docs.phpdoc.org/guides/docblocks.html#list-of-tags
@guiliredu
guiliredu / headers.php
Created May 21, 2018 20:03 — forked from irazasyed/headers.php
PHP HTTP Headers (Examples)
<?php
# Source: http://www.jonasjohn.de/snippets/php/headers.htm
// Use this header instruction to fix 404 headers
// produced by url rewriting...
header('HTTP/1.1 200 OK');
// Page was not found:
header('HTTP/1.1 404 Not Found');
@guiliredu
guiliredu / zsh-on-windows.md
Created May 16, 2018 22:03 — forked from aviaryan/zsh-on-windows.md
Installing zsh and oh-my-zsh on Windows
  1. Install zsh from cygwin
  2. Install oh-my-zsh from https://github.com/robbyrussell/oh-my-zsh . Follow the manual instructions
  3. To make zsh default on ConEmu, create a task with C:\cygwin64\bin\mintty.exe /usr/bin/zsh - . Make it the defaut shell.
  4. To start a zsh shell on demand, add this batch script to your path or start menu or wherever.
start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -