As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
# ~/.XCompose | |
# load defaults ( /usr/share/X11/locale/en_US.UTF-8/Compose ) | |
include "%L" | |
<Multi_key> <g> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA | |
<Multi_key> <g> <a> : "α" U03B1 # GREEK SMALL LETTER ALPHA | |
<Multi_key> <g> <B> : "Β" U0392 # GREEK CAPITAL LETTER BETA | |
<Multi_key> <g> <b> : "β" U03B2 # GREEK SMALL LETTER BETA | |
<Multi_key> <g> <D> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA |
DATABASE_URL=postgres://saleor:password@db/saleor | |
DEFAULT_FROM_EMAIL=[email protected] | |
CELERY_BROKER_URL=redis://redis:6379/1 | |
JAEGER_AGENT_HOST=jaeger | |
SECRET_KEY=secret_key | |
API_URI=https://saleor-api.domain.com/graphql/ | |
ALLOWED_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com | |
ALLOWED_CLIENT_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com |
/ip firewall filter add | |
chain=input | |
action=drop | |
comment="deny DNS resolution containing 'samsung' from SmartTV" | |
protocol=udp dst-port=53 | |
content="samsung" | |
src-mac-address=<smartv-mac-addr> | |
/ip firewall filter add | |
chain=forward | |
action=drop |
#!/usr/bin/env python | |
import sys | |
import time | |
import signal | |
from subprocess import Popen, PIPE | |
dd = Popen(['dd'] + sys.argv[1:], stderr=PIPE) | |
while dd.poll() is None: | |
time.sleep(.3) | |
dd.send_signal(signal.SIGUSR1) |