Skip to content

Instantly share code, notes, and snippets.

View YaseenTwati's full-sized avatar

Yaseen M. Twati YaseenTwati

View GitHub Profile
[
{
"fileName": "1141-aa16-01033011-tlc_switch.zigbee",
"fileVersion": 16986129,
"fileSize": 164738,
"url": "https://github.com/romasku/tuya-zigbee-switch/raw/e21e90ee57988e601ddb57782e65a427b6b25d00/bin/AVATTO_3_GANG_TOUCH/1141-aa16-01033011-tlc_switch.zigbee",
"imageType": 43542,
"manufacturerCode": 4417,
"sha512": "bbf35437708718e2a46f552d4df9110b3169c1932a0f1e6072d5036ddfe6273b97a7bcc31d2435c6b227be21213047d5bb40a6f9b58ec236bafe16b76b677979",
"otaHeaderString": "Telink Zigbee OTA\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
@YaseenTwati
YaseenTwati / IoT_1.ino
Last active December 11, 2018 16:04
Blinking a LED with Bluetooth
void setup()
{
pinMode(6, OUTPUT);
Serial.begin(9600);
}
void loop()
{
char r = Serial.read();
@YaseenTwati
YaseenTwati / Socks5.cpp
Last active December 21, 2017 14:22
Socks5 Connecting Demonstration
// Yaseen M. Twati
#ifdef _WIN32 // Windows
#include <winsock2.h>
#include <ws2tcpip.h>
#define MSG_NOSIGNAL 0
#else // Linuc + Max
#include <sys/types.h>
#include <sys/socket.h>
#include <iostream>
int main()
{
int i = 0;
for(i = 1; i < 100; i++)
{
if (i > 5)
continue;
i*=i;