/*
Made by [egy.js](https://www.instagram.com/egy.js/);
*/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun hidefocus(v:View?) { | |
try { | |
val imm =getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager | |
if (v != null) { | |
imm.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS) | |
} | |
} catch (ignored: Exception) { | |
} | |
edit_port.setSelected(false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
import playsound | |
import requests | |
old = b"" | |
filestring = "old_data_request.txt" | |
def getRequest(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def readbyte(fileloc: str): | |
in_file = open(fileloc, "rb") # opening for [r]eading as [b]inary | |
data = in_file.read() # if you only wanted to read 512 bytes, do .read(512) | |
in_file.close() | |
return data | |
def get_vcfstring(person): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ESP32 as Bluetooth Keyboard | |
With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed. | |
For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up. | |
In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone: | |
1. Go to your computers/phones settings | |
2. Ensure Bluetooth is turned on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/50796204/overwrite-master-with-develop | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node MCU pinmap | |
D0- GPIO16 | |
D1- GPIO5 | |
D2- GPIO4 | |
D3- GPIO0 | |
D4- GPIO2 | |
D5- GPIO14 | |
D6- GPIO12 | |
D7- GPIO13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
from time import sleep | |
import eg | |
import wx.lib.scrolledpanel as scrolled | |
eg.RegisterPlugin( | |
name="WMI Ghostly", | |
author="Glu", | |
guid="{1B1428D4-86BC-4A4E-941F-A90125262613}", | |
version="0.1.1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from time import sleep | |
from pynput.mouse import Listener,Button, Controller | |
mouse = Controller() | |
def on_move(x, y): | |
global p1 | |
p1=mouse.position | |
return False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import eg | |
import json | |
import socket | |
import threading | |
from threading import Event, Thread | |
import wx.lib.scrolledpanel as scrolled | |
eg.RegisterPlugin( | |
name="TCP handler", | |
author="Glu", |
OlderNewer