Skip to content

Instantly share code, notes, and snippets.

Lucas Cândido lcdss

Block or report user

Report or block lcdss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lcdss
lcdss / docker-cross-device-link.md
Created Dec 13, 2018 — forked from Francesco149/docker-cross-device-link.md
docker error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
View docker-cross-device-link.md
@lcdss
lcdss / Steps.md
Last active Nov 20, 2018 — forked from SalahAdDin/Steps.md
Installing React-Native Android Environment in ArchLinux
View Steps.md

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 Jan 14, 2019
Docker run
View history
- docker
- www
- app1
- app2
- config
- nginx
- logs
- nginx
- data
- mariadb
@lcdss
lcdss / .php_cs
Last active Jan 14, 2019
PHP CS Fixer
View .php_cs
<?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 Oct 24, 2018
Laravel error pages translations - pt_BR
View pt_BR.json
{
"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 Aug 23, 2018 — forked from jakebathman/logslaravel.sh
Tail Laravel logs and filter out the stack traces
View logslaravel.sh
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 Sep 15, 2018
Ubuntu 18.04 Setup
View emby-server.service
[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 Apr 4, 2018 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
View break.py
import code; code.interact(local=dict(globals(), **locals()))
@lcdss
lcdss / rename_phoenix_project.sh
Created Mar 10, 2018 — forked from kumekay/rename_phoenix_project.sh
rename a phoenix 1.3 project
View rename_phoenix_project.sh
#!/bin/bash
set -e
CURRENT_NAME="CurrentName"
CURRENT_OTP="current_name"
NEW_NAME="NewName"
NEW_OTP="new_name"
You can’t perform that action at this time.