Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
from django.utils.safestring import mark_safe | |
from wagtail.wagtailcore.blocks import ( | |
StructBlock, StructValue, CharBlock, PageChooserBlock, URLBlock, | |
StreamBlock, StaticBlock) | |
from wagtail.wagtailimages.blocks import ImageChooserBlock | |
class PageLink(StructBlock): | |
"""Links to pages within this site. |
set service dns forwarding name-server 1.1.1.1 | |
set service dns forwarding name-server 1.0.0.1 | |
set service dns forwarding name-server '2606:4700:4700::1111' | |
set service dns forwarding name-server '2606:4700:4700::1001' | |
set service dns forwarding options dnssec | |
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5 | |
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D | |
set service dns forwarding options dnssec-check-unsigned | |
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time |
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
class HeroBlock(StructBlock): | |
content = StreamBlock([ | |
('button', StructBlock([ | |
('text', CharBlock(required=False, max_length=80, label='Label')), | |
('url', URLBlock(required=False, label='URL')), | |
], label='Call to action', help_text='A "call-to-action" button, like "Sign Up Now!"')), | |
('video', EmbedBlock(label='Video')), | |
('quote', StructBlock([ | |
('text', TextBlock()), |
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
/* | |
* =================================================== | |
* django-filter | |
* =================================================== | |
*/ | |
.filter-form-header { | |
padding: 0; | |
h2 { | |
background-color: #fafafa; |
<script> | |
function recursivelyRemoveFill(el) { | |
if (!el) { | |
return; | |
} | |
el.removeAttribute('fill'); | |
[].forEach.call(el.children, child => { | |
recursivelyRemoveFill(child); | |
}); | |
} |
import os | |
from typing import Dict, Optional | |
import tomlkit | |
def _get_project_meta(pyproj_path: str = "./pyproject.toml") -> Dict[str, str]: | |
if os.path.exists(pyproj_path): | |
with open(pyproj_path, "r") as pyproject: | |
file_contents = pyproject.read() |
# Install Ubiquiti Unifi Controller on Ubuntu 20.04. | |
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020. | |
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps. | |
sudo apt update | |
sudo apt install --yes apt-transport-https | |
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list | |
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg |