Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local.
mDNS is disabled by default in Ubuntu Server:
$ resolvectl mdns
Global: no
Link 2 (eno1): no| # Migration script from Pelican to Hugo | |
| import os, re, shutil | |
| from pathlib import Path | |
| INPUT_FOLDER = "content" | |
| OUTPUT_FOLDER = "content-hugo" | |
| # Custom sort key function | |
| def sort_key(path): | |
| # Extract the base filename without the extension |
| # <type>: <subject> (Max 50 char, Why is this change necessary?) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Explain how the commit addresses the issue | |
| # IMPORTANT!! Describe any side effects of the change. | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Examples: "Jira issue [ABC-123]" or "Closes Github issue #123" |
Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local.
mDNS is disabled by default in Ubuntu Server:
$ resolvectl mdns
Global: no
Link 2 (eno1): no| from django.db import models | |
| class ModelA(models.Model): | |
| fieldA1 = models.CharField(max_length=100, unique=True) | |
| fieldA2 = models.TextField(validators=[URLValidator()], blank=True, null=True) | |
| fieldA3 = models.CharField(max_length=100, unique=True, null=True, blank=True) | |
| field4 = models.BooleanField(default=True) |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| """ | |
| This little script can generate a valid .vcf (vCard). It will ask you to fill | |
| in some details and write the vcf-file. | |
| """ | |
| def main(): | |
| print('Please enter contact details:') | |
| first_name = input(' - First name : ') | |
| last_name = input(' - Last name : ') | |
| email = input(' - E-mail address : ') |
| <?php | |
| /** | |
| * @param WP_Query|null $wp_query | |
| * @param bool $echo | |
| * @param array $params | |
| * | |
| * @return string|null | |
| * | |
| * Using Bootstrap 4? see https://gist.github.com/mtx-z/f95af6cc6fb562eb1a1540ca715ed928 | |
| * |
If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.
github.php somewhere on your PHP-enabled web server, and make it
accessible for the outside world. Let's say for now the script lives
on http://example.com/github.php| # [<tag>] (If applied, this commit will...) <subject> (Max 72 char) | |
| # |<---- Preferably using up to 50 chars --->|<------------------->| | |
| # Example: | |
| # [feat] Implement automated commit messages | |
| # (Optional) Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # (Optional) Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |