Skip to content

Instantly share code, notes, and snippets.

View nilsonpessim's full-sized avatar

Nilson Pessim nilsonpessim

View GitHub Profile
:local company TECHLABS
:local hostFTP HOST-FTP
:local portFTP 21
:local userFTP usuario-FTP
:local passFTP senha-FTP
:local telegramId id-telegram
:global nomeMikrotik ([/system identity get name])
:global versaoOS ([/system resource get version])
:global arch ([/system resource get architecture-name])
@nilsonpessim
nilsonpessim / Webmin
Last active September 15, 2021 14:10
echo "deb http://download.webmin.com/download/repository sarge contrib" | sudo tee -a /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" | sudo tee -a /etc/apt/sources.list
apt -y install gnupg
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
apt -y update
apt -y install webmin apt-transport-https
https://ip:10000/
<?php
/*****************************
* UPDATE FOR NILSON PESSIM / www.techinformatica.net.br (TechLabs working with 6.44.3)
*
*
* RouterOS PHP API class v1.6.1
* Author: Denis Basta
* Contributors:
* Nick Barnes
* Ben Menking (ben [at] infotechsc [dot] com)
#include <SoftwareSerial.h>
SoftwareSerial Bluetooth (10, 11);
int led = 13;
void setup(){
Bluetooth.begin(9600);
pinMode(led,OUTPUT);
}
const int r = 6;
const int g = 5;
const int b = 3;
void setup(){
pinMode(r,OUTPUT);
pinMode(g,OUTPUT);
pinMode(b,OUTPUT);
}
#include <LiquidCrystal.h>
#include <DHT.h>
#define DHTPIN A5
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte grau[8] ={ B00001100,
B00010010,
#include <virtuabotixRTC.h>
virtuabotixRTC myRTC(6, 7, 8);
void setup()
{
Serial.begin(9600);
// Uma vez setada a data e a hora, a linha abaixo deve ser comentada e o programa novamente carregado no Arduino.
myRTC.setDS1302Time(00, 58, 23, 2, 17, 11, 2014);
}
#include <IRremote.h>
int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn();
#include <IRremote.h>
int RECV_PIN = 2;
int Led = 13;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("Blog Arduino");
lcd.setCursor(0,1);
lcd.print("e Tecnologia");
}
void loop() {