Skip to content

Instantly share code, notes, and snippets.

View lsmenicucci's full-sized avatar

Lucas Menicucci lsmenicucci

  • Belo Horizonte
View GitHub Profile
# enable mouse
set -g mouse on
# vi keybindings
set -g mode-keys vi
# disable tmux clipboard
set-option -s set-clipboard off
# copy to system clipboard
@lsmenicucci
lsmenicucci / output_example.f90
Created August 29, 2022 20:11
Write vectors in a file example
PROGRAM output_example
IMPLICIT NONE
INTEGER, PARAMETER :: n = 50
REAL, DIMENSION(50) :: x, y, z
INTEGER :: i
! Fill vectors with random data \in [0, 1]
CALL RANDOM_NUMBER(x)
CALL RANDOM_NUMBER(y)
@lsmenicucci
lsmenicucci / lol-lutris.log
Created August 28, 2021 00:26
lol-lutris.log
2021-08-27 21:22:48,840: Magic not available. Unable to automatically find game executables. Please install python-magic
2021-08-27 21:22:48,893: No cores found
2021-08-27 21:22:48,971: Initializing lutris
2021-08-27 21:22:50,193: Downloading DXVK releases to /home/username/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-27 21:22:50,555: Failed to read response's content length
2021-08-27 21:22:50,598: Writing to /home/username/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-27 21:22:50,602: Runtime updated. Initialization complete.
INFO 2021-08-27 21:22:50,607 [application.do_command_line:315]:Lutris 0.5.8.4
INFO 2021-08-27 21:22:50,608 [startup.check_driver:49]:Using NVIDIA drivers 470.63.01 for x86_64
INFO 2021-08-27 21:22:50,609 [startup.check_driver:53]:GPU: NVIDIA GeForce 940MX
@lsmenicucci
lsmenicucci / lol.log
Created August 27, 2021 23:35
lol-linux-launch-error.log
Initial process has started with pid 21943
Start monitoring process.
000000.000| OKAY| Running from cwd 'C:\Riot Games\League of Legends'.
000000.000| ALWAYS| Application Version:11.17.393.0607 - CL:3930607 - Build Date:Aug 19 2021 - Build Time:17:22:22
000000.001| OKAY| Initial working directory: "C:\Riot Games\League of Legends"
000000.001| OKAY| Current process: "C:\Riot Games\League of Legends\LeagueClient.exe"
000000.001| OKAY| Command line arguments:
--locale=en_US
000000.002| OKAY| Enabling Data API Dradis collection with endpoint: https://ekg.riotgames.com/messages
000000.007| ALWAYS| The following message is prepared to be sent to dradis:
@lsmenicucci
lsmenicucci / steam-985810.log
Created July 28, 2021 05:37
GrandChase proton log
======================
Proton: 1627075293 experimental-6.3-20210723b
SteamGameId: 985810
Command: ['/home/my_username/.local/share/Steam/steamapps/common/GrandChase/GrandChase.exe']
Options: {'forcelgadd'}
depot: 0.20210630.17
pressure-vessel: 0.20210630.0
scripts: v0.20210623.0-0-ga389036
soldier: 0.20210629.0 soldier 0.20210629.0
======================
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
CPU Family: 0x6
# import core features
from threading import Thread, Lock
from queue import Queue
from time import sleep
from flask import Flask, render_template, Response, jsonify
import cv2
# import local modules
from vprocess import DetectionVideoStream