Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
| import requests | |
| import sys | |
| import json | |
| import re | |
| import os | |
| import string | |
| import argparse | |
| BASE_URL = 'https://api.twitch.tv' |
| """ | |
| Automatic migration of subscriptions to another | |
| YouTube account with Python and Selenium. | |
| Tested with: | |
| - selenium 3.0 | |
| - firefox 49.0 | |
| - python 3.5 | |
| 1. Install selenium from pypi: |
Use Python to:
Technical details for https://stackoverflow.com/a/44169445/6730571
On a base system, /usr/bin/java is a symlink that points to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java, which is an Apple wrapper tool that locates and executes the actual java.
(Do not touch anything in those 2 system directories. It should actually be impossible due to "System Integrity Protection" anyway.)
If you don't have Java installed, attempting to execute java will open a dialog that invites you to install it.
| FROM neilpang/acme.sh | |
| ADD ./new_entry.sh /new_entry.sh | |
| RUN chmod +x /new_entry.sh | |
| ENTRYPOINT ["/new_entry.sh"] |
| /** | |
| * This is a proof-of-concept for using ffmpeg as a HTTP video stream proxy | |
| * that can reduce ad volume. | |
| * | |
| * It only works on streams containing SCTE35 data packets. | |
| * You can check a stream using: | |
| * | |
| * ffmpeg -hide_banner -i <SOURCE_URL> 2>&1 | grep scte_35 | |
| * | |
| * Start the demo: |
| // ==UserScript== | |
| // @name TESTDatabase | |
| // @namespace foobar.com | |
| // @version 0.1.1 | |
| // @description testing database functionality | |
| // @include https://sample.somesite.com/* | |
| // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
| // @require https://unpkg.com/dexie@latest/dist/dexie.js | |
| // @grant GM_getValue | |
| // @grant GM_setValue |
| /*************************************************************************** | |
| IR Ferraris Reader | |
| 2019 Adlerweb//Bitbastelei | |
| Florian Knodt - www.adlerweb.info | |
| Note: Just a few minutes of coding, not heavily tested, etc | |
| ***************************************************************************/ | |
| #include <Arduino.h> |