This file contains 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://stem.torproject.org/tutorials/to_russia_with_love.html#using-socksipy | |
# http://segmentfault.com/q/1010000000511783/a-1020000000512182 | |
# https://github.com/kennethreitz/requests/pull/478#issuecomment-24914571 | |
# Python 3 | |
import socket | |
import time | |
# pip install requests | |
import requests |
This file contains 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
''' | |
Example: | |
python email_notify.py smtp-mail.outlook.com 587 ######## [email protected] [email protected] "Hello from Python" "Lunch is ready" | |
''' | |
import sys | |
import smtplib | |
from email.mime.text import MIMEText | |
_, host, port, password, fromaddr, toaddr, subject, content = sys.argv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# ImageMagick | |
convert -delay 50 +page *.png -loop 0 animated.gif | |
# FFmpeg | |
ffmpeg -framerate 30 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p movie.mp4 |
This file contains 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
""" | |
An interactive CLI script for entering grades on Canvas (an LMS). | |
Python 3.6+ | |
Usage: | |
1. Export the CSV file with Canvas | |
2. Modify the file with this script | |
3. Import the modified file to Canvas | |
Tip: use rlwrap. |