Name | Language |
---|---|
Al-Qahira | Arabic, Indonesian, Malay |
Ares | Greek |
Auqakuh | Quechua (Inca) |
Bahram | Persian |
Harmakhis | Ancient Egyptian |
Her Desher | Egyptian |
Hrad | Armenian |
Huo Hsing | Chinese |
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
def sanitize(untrusted_html, additional_tags=None): | |
"""Strips potentially harmful tags and attributes from HTML, but preserves | |
all tags in a whitelist. | |
Passing the list additional_tags will add the specified tags to the whitelist. | |
The sanitizer does NOT encode reserved characters into XML entities. It is up | |
to the template code, if any, to take care of that. | |
Based on the work of: |
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
## See https://github.com/FactoryBoy/factory_boy/issues/836 | |
import inspect | |
from typing import List, get_args, get_origin | |
import factory | |
import factory.fuzzy | |
from dataclasses import dataclass, Field, MISSING, is_dataclass | |
from enum import Enum | |
from datetime import date, datetime | |
from decimal import Decimal |
This isn't a guide about locking down homebrew so that it can't touch the rest of your system security-wise.
This guide doesn't fix the inherent security issues of a package management system that will literally yell at you if you try to do something about "huh, maybe it's not great my executables are writeable by my account without requiring authorization first".
But it absolutely is a guide about shoving it into its own little corner so that you can take it or leave it as you see fit, instead of just letting the project do what it likes like completely taking over permissions and ownership of a directory that might be in use by other software on your Mac and stomping all over their contents.
By following this guide you will:
- Never have to run
sudo
to forcefully change permissions of some directory to be owned by your account