Skip to content

Instantly share code, notes, and snippets.

View danielschmitz's full-sized avatar

Daniel Schmitz danielschmitz

  • UFJF
  • Juiz de Fora / Brazil
View GitHub Profile
Emoji Code Commit Message
🎨 :art: Improving structure / format of the code
⚡️ :zap: Improving performance
🔥 :fire: Removing code or files
🐛 :bug: Fixing a bug
🚑 :ambulance: Critical hotfix
:sparkles: Introducing new features
📝 :pencil: Writing docs
🚀 :rocket: Deploying stuff
import Vue from 'vue'
import Router from 'vue-router'
import store from '../store'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
@danielschmitz
danielschmitz / page.vue
Created August 31, 2019 12:31
A single Vue template file
<template>
<div>Vue component</div>
</template>
<script>
export default {
name: '',
components: {
},
props: {
FROM php:7.1-apache
COPY server.crt /etc/apache2/ssl/server.crt
COPY server.key /etc/apache2/ssl/server.key
RUN useradd -u 1000 reportei
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
@danielschmitz
danielschmitz / associado.js
Created March 20, 2019 20:01
AXIOS e VUE, como fazer
import http from './http'
const associadoService = {
getAll: page => http.get(`/associados?page=${page}`),
getById: id => http.get(`/associados/${id}`)
}
export default associadoService
@danielschmitz
danielschmitz / Sumário.md
Last active February 13, 2019 13:10
Sumário do livro Vue Build & Deploy em Português

Introdução

Instalação

Backend

  • Adicionando o arquivo da base de dados
  • Adicionando o servidor
  • Executando o servidor
  • Instalando o now.sh
  • Deploy do servidor

Frontend

@danielschmitz
danielschmitz / gist:9499009272c120810d9cb4440aa6142a
Created January 25, 2019 09:56
OBS Black screen problem Notebook dell nvidia intel

If you are using a laptop, you may run into capture issues (black screen). This is because most laptops have more than one graphics adapter. Why do they have more than one graphics adapter? Because one is used for saving power (desktop / windows), and the other is used for performance (gaming). This is done to minimize power usage on the laptop, as laptops are designed to run on batteries.

Because of this fact, it can often cause capture issues. Your laptop may be drawing one image to the power saving GPU, and another to the performance GPU. However, in order for OBS to capture efficiently, OBS itself must be running on the same GPU as that you wish to capture. If OBS is running on adapter A, and an image is being drawn on adapter B, you will get a black screen when trying to capture it.

Solution:

Go to obs executable file, and choose your graphic card

image

---
home: true
heroImage: /hero.png
actionText: Get Started →
actionLink: /guide/
features:
- title: Simplicity First
details: Minimal setup with markdown-centered project structure helps you focus on writing.
- title: Vue-Powered
details: Enjoy the dev experience of Vue + webpack, use Vue components in markdown, and develop custom themes with Vue.

home: true heroImage: /hero.png actionText: Get Started → actionLink: /guide/ features:

  • title: Simplicity First details: Minimal setup with markdown-centered project structure helps you focus on writing.
  • title: Vue-Powered details: Enjoy the dev experience of Vue + webpack, use Vue components in markdown, and develop custom themes with Vue.