Skip to content

Instantly share code, notes, and snippets.

View Narceliolima's full-sized avatar
🥭
Mangos

Narcelio Lima Narceliolima

🥭
Mangos
View GitHub Profile
@Narceliolima
Narceliolima / openvas_install_a.sh
Created March 21, 2025 04:29
Instalador alternativo Openvas
#!/bin/bash
# OpenVAS installation from sources for Debian 12 systems.
# Documentation: https://greenbone.github.io/docs/latest/
# Check if the script is running as root.
if [ "$EUID" -ne 0 ]
then echo "Please run this script as root."
exit
@Narceliolima
Narceliolima / Vagrantfile
Created March 20, 2025 17:41
Arquivo pré configurado do Vagrantfile para utilizar o Openvas
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
#!/bin/bash
# OpenVAS installation from sources for Debian 12 systems.
# Documentation: https://greenbone.github.io/docs/latest/
# Check if the script is running as root.
if [ "$EUID" -ne 0 ]
then echo "Please run this script as root."
exit
//Define Bibliotecas
#include <Servo.h>
#include <math.h>
//Define botôes (placas de pressão)
#define entrada A5
#define saida A4
#define vaga1 A3
#define vaga2 A2
#define vaga3 A1
#include <Servo.h>
#define pot A5
#define passa 6
#define volta 7
#define ligado 2
#define red 9
#define green 11
#define blue 10
#define red 10
#define green 8
#define blue 9
int leds[] = {red,green,blue};
int botoes[] = {7,6,5};
int intensidade[] = {0,0,0};
bool inverter[] = {false,false,false};
void setup(){
import cv2
imagens = ["images/mancha1mod.jpg","images/mancha2mod.jpg","images/mancha3mod.jpg"]
for imagem in imagens:
imagemOriginal = cv2.imread(imagem)
cv2.imshow("Imagem Original", imagemOriginal)
import cv2
#Pré-Processamento
#----------------------------------//----------------------------------//----------------------------------//
imagemOriginal = cv2.imread("images/vitiligo.png")
cv2.imshow("Imagem Original", imagemOriginal)
cv2.waitKey()
cv2.destroyAllWindows()
import cv2
imagens = ["images/mancha1mod.jpg","images/mancha2mod.jpg","images/mancha3mod.jpg"]
for imagem in imagens:
imagemOriginal = cv2.imread(imagem)
cv2.imshow("Imagem Original", imagemOriginal)
@Narceliolima
Narceliolima / inputxy.txt
Created September 16, 2020 01:19
Entrada do algoritmo kmeans.c
9.9695 11.6944
5.7056 10.9408
5.092 10.628
8.3116 10.6948
8.6877 11.1212
7.6103 11.7018
6.034 10.3767
9.6094 11.2766
5.193 10.9176
9.3411 11.092