This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on an upgraded Ubuntu 20.04 | |
apt install netplan.io | |
systemctl unmask systemd-networkd.service | |
systemctl unmask systemd-resolved.service | |
ENABLE_TEST_COMMANDS=1 netplan migrate | |
netplan try | |
reboot | |
apt purge ifupdown resolvconf | |
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate a Netlify HTTP2 Server Push configuration. | |
* | |
* Options: | |
* - headersFile {string} path to the _headers file that should be generated (relative to your output dir) | |
*/ | |
function NetlifyServerPushPlugin(options) { | |
this.options = options; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local t_insert,t_concat = table.insert,table.concat; | |
local s_char = string.char; | |
local pairs,ipairs = pairs,ipairs; | |
local type = type; | |
local tostring,tonumber = tostring,tonumber; | |
-- DNS Parser | |
-- The following is a parser for the DNS format defined in RFC1035 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# templatetags/kwacros.py - Support for macros in Django templates | |
# | |
# Based on snippet by | |
# Author: Michal Ludvig <[email protected]> | |
# http://www.logix.cz/michal | |
# | |
# modified for args and kwargs by Skylar Saveland http://skyl.org | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import smtplib | |
import sys | |
import time | |
from optparse import OptionParser | |
from supervisor import childutils |