Skip to content

Instantly share code, notes, and snippets.

@janasco
janasco / AnyDesk-Reset.cmd
Created August 3, 2023 09:46
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@mthri
mthri / SocketClient.ino
Last active June 16, 2024 02:40
esp8266 socket client and python socket server
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
const uint16_t port = 8585;
const char *host = "SERVER-IP";
WiFiClient client;
void setup()
{
Serial.begin(115200);
@haccks
haccks / python_mail_sender.md
Last active December 23, 2023 13:05
Send emails to multi recipients with multiple attachments using python

A simple script in python3.x to

  • Send text emails.
  • Send to multiple clients.
  • Send multiple attachments (including images, videos, audios and compressed files)

To send email from the local SMTP server (localhost) it is assumed that a mail transfer agent (MTA), like postfix, is already configured on your local system. If not the follow this gist for step by step setup.

To send email from the gmail server you need to allow access for less secure apps in your Google account