Skip to content

Instantly share code, notes, and snippets.

View yakutozcan's full-sized avatar
🎯
Focusing

Yakut Özcan yakutozcan

🎯
Focusing
View GitHub Profile
import socket
host = "192.168.1.25"
port = 1907
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
gidecek = input("Acmak icin H, Kapatmak icin L:")
ByteDataSend = bytes(gidecek, 'utf-8')
s.sendall(ByteDataSend)
data = s.recv(1024)
var http = require('http'),
express = require('express'),
app = express();
app.get('/', function(req, res) {
//nginx den gelen ip bilgisi
var ip = req.headers['x-real-ip'] || req.connection.remoteAddress;
console.log(ip);
res.send("Naber abi:"+ip);
});
app.listen(1907, function() {
#Ornek nginx alt domain ayarı
server {
listen 80;
server_name temp.haydut.xyz;
location / {
proxy_pass http://127.0.0.1:1907;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
import os
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
OldPinStatus = None
while True:
/*******************************************************************
* An example of bot that receives commands and turns on and off *
* an LED. *
* *
* written by Giacarlo Bacchio (Gianbacchio on Github) *
* adapted by Brian Lough *
*******************************************************************/
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <UniversalTelegramBot.h>
char* StringToChar(String command){
if(command.length()!=0){
char *p = const_cast<char*>(command.c_str());
return p;
}
}
/*
This a simple example of the aREST UI Library for the ESP8266.
See the README file for more details.
Written in 2014-2016 by Marco Schwartz under a GPL license.
*/
// Import required libraries
#include <ESP8266WiFi.h>
#include <aREST.h>
1. hivemq.com/try-out
2. cloudmqtt.com
3. iot.eclipse.org
4. test.mosquitto.org
5. dev.rabbitmq.com
6. broker.mqttdashboard.com
7. q.m2m.io
8. mqtt.simpleml.com
9. mqtt.dioty.co
10. dioty.co
  • mqtt-admin - Web tabanlı MQTT doğrudan bağlantı.
  • mqtt-benchmark - MQTT Sunucuları için bir analiz aracı.
  • mqtt-fuzz - MQTT protokolü için basit bir fuzzer.
  • mQTT.fx - MQTT.fx, Eclipse Paho'ya dayalı Java ile yazılmış bir MQTT İstemcisidir. Komut dizaynını destekler.
  • mQTTLens - Bir MQTT sunucusuna bağlanan ve MQTT konularına abone olan ve yayınlayabilen bir Google Chrome uygulaması.
  • mQTTInspector - iOS için genel bir MQTT test uygulaması (iPhone ve iPad).
  • mqtt-spy - Java tabanlı MQTT ön uç. Komut dizaynını destekler.
  • mqtt-utils - MQTT yardımcı programlarının bir koleksiyonu.
  • [wireshark-MQTT](https://github.com/menudoproblema/Wireshar
#!/usr/bin/env python
# -*- coding: utf8 -*-
#Gerekli kütüphaneleri ekliyoruz
from gpiozero import MotionSensor
import telepot
import picamera
import time
from datetime import timedelta