Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
Use Python to:
| [PHP] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
| -- turn off paging (less/more) | |
| psql> \pset pager off | |
| /* | |
| Pager usage is off. | |
| */ | |
| -- find an object name by id | |
| SELECT OID, relname |
Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.
Tambahkan list di bawah ke /etc/hosts.
First create a domain or subdomain to use. For example video.example.com Generate ssl with letsencrypt.
| import warnings | |
| from urllib3.exceptions import NotOpenSSLWarning | |
| warnings.filterwarnings("ignore", category=NotOpenSSLWarning) | |
| import subprocess | |
| import requests | |
| import urllib.parse | |
| import json | |
| import os | |
| from datetime import datetime |
| import os | |
| import sqlite3 | |
| import json | |
| import base64 | |
| import shutil | |
| import win32crypt | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| from cryptography.hazmat.backends import default_backend | |
| CHROME_PATH = os.path.expanduser("~") + r"\AppData\Local\Google\Chrome\User Data\Default\Login Data" |