Skip to content

Instantly share code, notes, and snippets.

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

Vinicius vinnom

🏠
Working from home
  • Venturus
  • São Paulo, Brazil
View GitHub Profile
@vinnom
vinnom / journalctl.txt
Created September 3, 2018 20:19
journalctle -xe
Sep 03 15:54:16 archvinnom dhcpcd[2535]: main: control_open: Connection refused
Sep 03 15:54:16 archvinnom dhcpcd[2535]: DUID 00:01:00:01:22:7f:6d:2c:bc:5f:f4:a2:fb:f1
Sep 03 15:54:16 archvinnom dhcpcd[2535]: enp1s8: IAID 4c:69:24:ea
Sep 03 15:54:16 archvinnom dhcpcd[2535]: enp1s8: soliciting an IPv6 router
Sep 03 15:54:17 archvinnom dhcpcd[2535]: enp1s8: rebinding lease of 192.168.1.7
Sep 03 15:54:22 archvinnom dhcpcd[2535]: enp1s8: DHCP lease expired
Sep 03 15:54:22 archvinnom dhcpcd[2535]: enp1s8: soliciting a DHCP lease
Sep 03 15:54:28 archvinnom dhcpcd[2535]: enp1s8: no IPv6 Routers available
@vinnom
vinnom / logcat.txt
Created January 11, 2019 18:08
hwcan los 16
--------- beginning of main
--------- beginning of system
06-24 13:52:57.955 468 468 E : Cannot determine initial API level of the device
06-24 13:52:57.983 449 449 E SELinux : avc: denied { add } for interface=android.hardware.drm::IDrmFactory pid=486 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_hwservice:s0 tclass=hwservice_manager permissive=1
06-24 13:52:57.985 449 449 E SELinux : avc: denied { add } for interface=android.hidl.base::IBase pid=486 scontext=u:r:init:s0 tcontext=u:object_r:hidl_base_hwservice:s0 tclass=hwservice_manager permissive=1
06-24 13:52:58.015 479 479 E audiohalservice: Could not get passthrough implementation for android.hardware.audio@4.0::IDevicesFactory/default.
06-24 13:52:58.031 479 479 E audiohalservice: Could not get passthrough implementation for android.hardware.audio.effect@4.0::IEffectsFactory/default.
06-24 13:52:58.046 479 479 E audiohalservice: Could not get passthrough implementation for android.hardware.soundtrigger@2.1::ISound
jan 28, 2019 1:38:39 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [br.com.alura.gerenciador.servlet.NovaEmpresaServlet] in context with path [/servlet1] threw exception [An exception occurred processing [/novaEmpresaCriada.jsp] at line [8]
5: <%
6: //scriptlet
7:
8: String nomeEmpresa = (String) request.getAttribute("empresa");
9: System.out.println(nomeEmpresa);
10: %>
11:
@Bean
public MultipartResolver multipartResolver() {
return new StandardServletMultipartResolver();
} // método que cria e configura o Resolver do Multipart
@vinnom
vinnom / CarrinhoCompras.java
Created November 29, 2019 19:46
Carregamento do Carrinho
package br.com.alura.springmvc.models;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;
@vinnom
vinnom / AppWebConfig.java
Created November 29, 2019 19:48
Pedindo Login no Finalizar Compra
package br.com.alura.springmvc.conf;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.guava.GuavaCacheManager;
@vinnom
vinnom / UsuarioController.java
Created December 31, 2019 00:30
Não estou conseguindo passar os dados da View para o Controller
package br.com.casadocodigo.loja.controllers;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
@vinnom
vinnom / error.log
Created May 1, 2020 22:44
FAILED: AIDL CHECK API
FAILED: AIDL CHECK API: system/netd/resolv/aidl/dnsresolver/2 against system/netd/resolv/aidl/dnsresolver/1
Outputs: /home/vinnom/Android/rom_dev/roms/validus/out/soong/.intermediates/system/netd/resolv/dnsresolver_aidl_interface-api/checkapi_2.timestamp
Error: exited with code: 1
Command: (/home/vinnom/Android/rom_dev/roms/validus/out/soong/host/linux-x86/bin/aidl --checkapi system/netd/resolv/aidl/dnsresolver/1 system/netd/resolv/aidl/dnsresolver/2 && touch /home/vinnom/Android/rom_dev/roms/validus/out/soong/.intermediates/system/netd/resolv/dnsresolver_aidl_interface-api/checkapi_2.timestamp) || (cat system/tools/aidl/build/message_check_compatibility.txt && exit 1)
Output:
ERROR: system/netd/resolv/aidl/dnsresolver/1: No API file exist
###############################################################################
# ERROR: Backward incompatible change detected on AIDL API #
###############################################################################
Above AIDL file(s) has changed in
@vinnom
vinnom / AtualizaListaAsyncTask.java
Last active June 30, 2020 20:05
Lista de alunos só carrega após ir para o Formulário e voltar
package br.com.alura.agenda.ui.asynctask;
import android.os.AsyncTask;
import java.util.List;
import br.com.alura.agenda.model.Aluno;
import br.com.alura.agenda.room.AlunoDao;
public class AtualizaListaAsyncTask extends AsyncTask<Void, Void, List<Aluno>> {
@vinnom
vinnom / AtualizaAlunosAsyncTask.java
Created May 8, 2020 16:20
Consigo editar o aluno, mas a lista não recupera o valor
package br.com.alura.agenda.ui.asynctask;
import android.os.AsyncTask;
import br.com.alura.agenda.model.Aluno;
import br.com.alura.agenda.room.AlunoDao;
public class AtualizaAlunosAsyncTask extends AsyncTask<Void, Void, Void> {
private final AlunoDao alunoDao;