Skip to content

Instantly share code, notes, and snippets.

View YaseenTwati's full-sized avatar

Yaseen M. Twati YaseenTwati

View GitHub Profile
@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;