Skip to content

Instantly share code, notes, and snippets.

@Archeb
Archeb / SMSF.py
Last active November 21, 2020 08:15
SMS Forwarder
import serial
import re
import requests
ser = serial.Serial('/dev/ttyUSB0')
ser.write('AT+CSCS="UCS2"\n')
while 1:
read=ser.readline()
match=re.match(r'\+CMTI: "ME",(\d+)',read)
if(match):
ser.write('AT+CMGR=' + match.group(1) + '\n')
@omz
omz / FileTransfer.py
Last active September 6, 2024 01:50
File Transfer script for Pythonista (iOS)
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.