simple VM created with terraform-provider-proxmox
- one core
- 512MB RAM
- Ubuntu netinstall CDROM
- 32GB IDE HDD
- bridged network interface
simple VM created with terraform-provider-proxmox
#!/bin/bash | |
# Set defaults if not provided by environment | |
CHECK_DELAY=${CHECK_DELAY:-5} | |
CHECK_IP=${CHECK_IP:-8.8.8.8} | |
PRIMARY_IF=${PRIMARY_IF:-eth0} | |
PRIMARY_GW=${PRIMARY_GW:-1.2.3.4} | |
BACKUP_IF=${BACKUP_IF:-eth1} | |
BACKUP_GW=${BACKUP_GW:-2.3.4.5} |
The easiest way of using Svelte for SSR in Node is by using svelte/register
. This allows to require .svelte
files without any bundling and render HTML, CSS, etc.
This is the example from the docs:
require('svelte/register');
const App = require('./App.svelte').default;
# Put this file in folder /etc/cron.d/ | |
MAILTO="debug@example.com" | |
0 1 * * * root /usr/local/sbin/certbot-renew.sh |
https://openvpn.net/vpn-server-resources/managing-settings-for-the-web-services-from-the-command-line/#Installing_a_signed_SSL_certificate | |
https://certbot.eff.org/docs/using.html | |
https://serverfault.com/questions/215606/how-do-i-view-the-details-of-a-digital-certificate-cer-file | |
https://sideras.net/2016/02/24/lets-encrypt-https-certificates-for-openvpn-as-access-server/ | |
https://docs.aws.amazon.com/cli/latest/reference/ec2/authorize-security-group-ingress.html | |
sudo certbot renew --dry-run ( use --verbose if you want ) | |
sudo service openvpnas start ( or sudo ./sacli start ) | |
sudo service openvpnas stop ( or sudo ./sacli stop ) |
npm i --save-dev @fortawesome/fontawesome-free @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/vue-fontawesome bootstrap jquery popper.js firebase |
With the following “Docker recipe”, you will set up a Docker node running separate WordPress installation on two domains or subdomains. This setup is pretty much production ready, with:
import csv | |
import requests | |
import bs4 | |
import argparse | |
# parser = argparse.ArgumentParser(description='Process a list of search terms.') | |
# parser.add_argument('terms', metavar='N', type=str, nargs='+', | |
# help='comma separated list of terms to search for') | |
# args = parser.parse_args() |
A curated list of awesome PHP frameworks, libraries and software. | |
* [laravel/laravel](https://github.com/laravel/laravel) - A PHP Framework For Web Artisans | |
* [symfony/symfony](https://github.com/symfony/symfony) - The Symfony PHP framework | |
* [bcit-ci/CodeIgniter](https://github.com/bcit-ci/CodeIgniter) - Open Source PHP Framework (originally from EllisLab) | |
* [domnikl/DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) - sample code for several design patterns in PHP | |
* [fzaninotto/Faker](https://github.com/fzaninotto/Faker) - Faker is a PHP library that generates fake data for you | |
* [yiisoft/yii2](https://github.com/yiisoft/yii2) - Yii 2: The Fast, Secure and Professional PHP Framework | |
* [composer/composer](https://github.com/composer/composer) - Dependency Manager for PHP |
Preamble:
In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.
The problem:
Streaming low-latency live content is quite hard, because most software-based video codecs are designed to achieve the best compression and not best latency. This makes sense, because most movies are encoded once and decoded often, so it is a good trade-off to use more time for the encoding than the decoding.