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
@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

@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 / 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
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 / 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: {
import Vue from 'vue'
import Router from 'vue-router'
import store from '../store'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
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
$ sudo apt update && sudo apt dist-upgrade
$ sudo apt install composer php-zip php-mbstring php-xml php-pgsql
$ composer global require laravel/installer
$ export PATH="$HOME/.composer/vendor/bin:$PATH"
$ laravel new blog
$ cd blog
$ php artisan serve
bonus: postgresql
@danielschmitz
danielschmitz / App.js
Created March 5, 2020 20:55
React Example
import React, {useEffect, useState} from 'react';
export default function App() {
/**
* States
*/
const [_reps, setReps] = useState([]);
/**