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 / cloudSettings
Last active August 29, 2020 06:22
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-29T06:22:17.176Z","extensionVersion":"v3.4.3"}
@lcdss
lcdss / certbot-example.sh
Last active April 27, 2020 13:54
Certbot Example
#!/bash/bin
# quiet, non-interactive
./certbot certonly --standalone --quiet \
--pre-hook "sudo service nginx stop" \
--post-hook "sudo service nginx start" \
--rsa-key-size 4096
--email me@domain.com \
# --cert-name # Defaults to the first domain name
-d domain.com -d domain.com xxx.domain.com \
# --domains domain.com,xxx.domain.com \
@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 / history
Last active January 14, 2019 12:04
Docker run
- docker
- www
- app1
- app2
- config
- nginx
- logs
- nginx
- data
- mariadb
@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 / 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 / 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 / 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