Skip to content

Instantly share code, notes, and snippets.

View lcdss's full-sized avatar
🏠
Working from home

Lucas Cândido lcdss

🏠
Working from home
View GitHub Profile
@lcdss
lcdss / laravel-ddd-approach.md
Created May 27, 2021 21:32 — forked from ibrunotome/laravel-ddd-approach.md
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
| | ├── /Contracts
@lcdss
lcdss / docker-cross-device-link.md
Created December 13, 2018 13:19 — forked from Francesco149/docker-cross-device-link.md
docker error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
@lcdss
lcdss / Steps.md
Last active November 20, 2018 02:06 — forked from SalahAdDin/Steps.md
Installing React-Native Android Environment in ArchLinux

First step: Install Android SDK

  1. yay -S android-sdk android-sdk-platform-tools android-sdk-build-tools genymotion
  2. sudo modprobe vboxdrv vboxnetadp vboxnetflt
    Activate for current session.
  3. sudo chown -R $USER:$USER /opt/android-sdk
    Give permisions over Android SDK folders.
  4. Restart
    Is needed by Genymotion for detect VirtualBox modules.
    NOTE: You need install Java JDK for user Android SDK.
  5. /opt/android-sdk/tools/bin/sdkmanager
@lcdss
lcdss / history
Last active January 14, 2019 12:04
Docker run
- docker
- www
- app1
- app2
- config
- nginx
- logs
- nginx
- data
- mariadb
@lcdss
lcdss / .php_cs
Last active January 14, 2019 12:05
PHP CS Fixer
<?php
$finder = \PhpCsFixer\Finder::create()
->in('app')
// ->except(['vendor', 'storage', 'bootstrap'])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
@lcdss
lcdss / pt_BR.json
Created October 24, 2018 13:44
Laravel error pages translations - pt_BR
{
"Oh no": "Ah não",
"Go Home": "Ir para o início",
"Forbidden": "Acesso Negado",
"Sorry, you are forbidden to access this page.": "Desculpe, você está proibido de acessar esta página.",
"Unauthorized": "Não Autorizado",
"Sorry, you are not authorized to access this page.": "Desculpe, você não está autorizado a acessar esta página.",
"Page Not Found": "Página Não Encontrada",
"Sorry, the page you are looking for could not be found.": "Desculpe, a página que você está acessando não pode ser encontrada.",
"Page Expired": "Página Expirada",
@lcdss
lcdss / logslaravel.sh
Created August 23, 2018 00:59 — forked from jakebathman/logslaravel.sh
Tail Laravel logs and filter out the stack traces
tail -f -n 450 storage/logs/laravel*.log \
| grep -i -E \
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \
--color
@lcdss
lcdss / emby-server.service
Last active September 15, 2018 01:25
Ubuntu 18.04 Setup
[Unit]
Description=Emby Media Server
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a emby-server
ExecStop=/usr/bin/docker stop -t 5 emby-server
@lcdss
lcdss / break.py
Created April 4, 2018 02:49 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
@lcdss
lcdss / rename_phoenix_project.sh
Created March 10, 2018 14:11 — forked from kumekay/rename_phoenix_project.sh
rename a phoenix 1.3 project
#!/bin/bash
set -e
CURRENT_NAME="CurrentName"
CURRENT_OTP="current_name"
NEW_NAME="NewName"
NEW_OTP="new_name"