Skip to content

Instantly share code, notes, and snippets.

View Mahyar24's full-sized avatar
🇺🇦

Mahyar Mahyar24

🇺🇦
View GitHub Profile
#! /usr/bin/env python3
"""
This module is used for checking IP GeoLocations of users.
Install Pandas and Requests beforehand via: `pip install pandas requests`
Also remember to enter your API key in line 26.
Sample Command:
$ sudo journalctl -u xray --since "5 min ago" | grep "admin" | cut -d " " -f 6,7,8 | python3 ip.py -
@Mahyar24
Mahyar24 / eye.py
Created August 20, 2023 14:13
Detecting motion, and then recording, streaming and sending an SMS.
#! /usr/bin/env python3.10
"""
This module is used for detecting motion, and then recording, streaming and sending an SMS.
Install packages beforehand via: `pip install khayyam pytz requests opencv-python`
FFmpeg is required for streaming, and it should be in your PATH.
Remember to fill in these items:
- streaming link: line 66
- SMS sender and receivers numbers: line 69