-
Install needed adobe apps from adobe creative cloud.
-
Open Terminal.
-
Copy-paste the below command to your terminal and run it (enter password when asked).
import re | |
import email.charset | |
from pathlib import Path | |
from glob import glob | |
from email import message_from_binary_file, policy | |
RE_QUOPRI_BS = re.compile(r'\b=20=\n') | |
RE_QUOPRI_LE = re.compile(r'\b=\n') | |
RE_LONG_WORDS = re.compile(r'\b[\w\/\+\=\n]{72,}\b') |
from datetime import datetime | |
from time import sleep | |
from dnslib import DNSLabel, QTYPE, RD, RR | |
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT | |
from dnslib.server import DNSServer | |
EPOCH = datetime(1970, 1, 1) | |
SERIAL = int((datetime.utcnow() - EPOCH).total_seconds()) |
#!/usr/bin/env python | |
# How to use: | |
# | |
# Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto | |
# | |
# Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var: | |
# AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py | |
# | |
# Manually specify hosted zone: |
Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
<template> | |
<textarea onsave.delegate="printToConsole($event.detail)" value.bind="myText" tiny-mce></textarea> | |
</template> |
Taken in part from discussions/solutions mentioned [here]this aurelia/templating#35)
Please also look at view-manager and aurelia-form for inspiration. Maybe also look here for example of dynamic data grid with rows and columns :)
Notes: This works for me as well. I only had to change view.bind(this.bindingContext);
to view.bind(this);
as I wanted to bind to the model itself (not its parent) and initially failed on using click delegates.
Alternative!?
Backup: | |
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
Restore: | |
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int