Let's call the container docker_test1
.
$ sudo lxc-create -t download -n docker_test1
...
Follow the prompts on the screen to set up the new container.
# Zathura configuration file | |
# See man `man zathurarc' | |
# Open document in fit-width mode by default | |
set adjust-open "best-fit" | |
# One page per row by default | |
set pages-per-row 1 | |
#stop at page boundries |
// Implement Pic. It should return a slice of length dy, each element of which is | |
// a slice of dx 8-bit unsigned integers. When you run the program, it will display your picture, | |
// interpreting the integers as grayscale (well, bluescale) values. | |
// | |
// The choice of image is up to you. Interesting functions include (x+y)/2, x*y, and x^y. | |
// | |
// (You need to use a loop to allocate each []uint8 inside the [][]uint8.) | |
// | |
// (Use uint8(intValue) to convert between types.) | |
package main |
# ------------------------------------------------ | |
# Config files are located in /etc/wireguard/wg0 | |
# ------------------------------------------------ | |
# ---------- Server Config ---------- | |
[Interface] | |
Address = 10.10.0.1/24 # IPV4 CIDR | |
Address = fd86:ea04:1111::1/64 # IPV6 CIDR | |
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Add forwarding when VPN is started | |
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE # Remove forwarding when VPN is shutdown |
I'm be using DreamCompute as my OpenStack provider, but there are dozens to choose from. I assume you already have Ansible and the OpenStack CLI tools installed.
With the proliferation of OpenStack public clouds offering free and intro tiers, it's becoming very easy to effectively run a simple application for free or nearly free. Also with the emergence of Ansible, you don't need to learn and deploy complicated tools to do configuration management.
import json | |
from airflow.models.connection import Connection | |
c = Connection( | |
conn_id='s3conn', | |
conn_type='s3', | |
extra=json.dumps({"host":"http://hostname/", "aws_access_key_id":"id", "aws_secret_access_key": "secret"}), | |
) | |
c.get_uri() |
открываем страницу | |
https://rutube.ru/video/f302ba6920e127635e800611cc943b7a/ | |
ищем тег | |
<meta property="og:video" content="http://rutube.ru/play/embed/11709712" /> | |
цифры айди используем в ссылке вида: | |
https://rutube.ru/api/play/options/11709712/?format=json | |
получаем джсон |