Skip to content

Instantly share code, notes, and snippets.

View alexle's full-sized avatar

Alex Le alexle

View GitHub Profile
@alexle
alexle / cloudSettings
Last active December 28, 2019 17:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-12-28T17:43:04.782Z","extensionVersion":"v3.2.9"}
@alexle
alexle / smspython.py
Created September 16, 2013 03:12
Simple Python script to send SMS! Can send image attachments as well.
# smspython.py
# Sends sms message to any cell phone using gmail smtp gateway
# Written by Alex Le (http://alexanderle.com)
import smtplib, base64, sys, re
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEImage import MIMEImage
@alexle
alexle / pythonsms.py
Last active December 1, 2023 01:01
How to send a text message with python
# sms.py
# Sends sms message to any cell phone using gmail smtp gateway
# Written by Alex Le
import smtplib
# Use sms gateway provided by mobile carrier:
# at&t: number@mms.att.net
# t-mobile: number@tmomail.net
# verizon: number@vtext.com
@alexle
alexle / ionscraper.py
Created October 18, 2011 02:42
Web scraper for Criminal Minds show times (ION)
#!/usr/bin/python
from urllib import urlopen
import re, time
LINK = 'http://www.ionline.tv' # url to scrape
SHOW = 'CRIMINAL MINDS' # show keyword to search on
msg = SHOW
show_index = 0
@alexle
alexle / sms.py
Created May 5, 2011 15:51
Send SMS text message with python
import smtplib
# Use sms gateway provided by mobile carrier:
# at&t: number@mms.att.net
# t-mobile: number@tmomail.net
# verizon: number@vtext.com
# sprint: number@page.nextel.com
server = smtplib.SMTP( "smtp.gmail.com", 587 )
server.ehlo()