Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/bash | |
# ============================================================================= | |
# ssl-certs.sh - Self signing SSL certificates | |
# | |
# Author: Steve Shreeve <[email protected]> | |
# Date: Dec 17, 2022 | |
# ============================================================================= | |
# Use https://gist.github.com/shreeve/3358901a26a21d4ddee0e1342be7749d |
function useAbortController() { | |
const abortControllerRef = React.useRef() | |
const getAbortController = React.useCallback(() => { | |
if (!abortControllerRef.current) { | |
abortControllerRef.current = new AbortController() | |
} | |
return abortControllerRef.current | |
}, []) | |
React.useEffect(() => { |
<?php | |
declare(strict_types=1); | |
namespace AppBundle\EventSubscriber; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\NativeQuery; | |
use Doctrine\ORM\NonUniqueResultException; | |
use Doctrine\ORM\Query\ResultSetMapping; |
# drop-in override to fix and enable autologin in rootless containers with systemd init | |
# e.g.: | |
# | |
# podman run --rm -it \ | |
# -v .../container-systemd-autologin.conf:/etc/systemd/system/console-getty.service.d/override.conf:ro \ | |
# centos:latest /usr/lib/systemd/systemd | |
[Service] | |
ExecStart= | |
ExecStartPre=-/usr/bin/sed -i '/pam_loginuid.so/d' /etc/pam.d/login |
/* mail.google.com */ | |
table img[title*=".zip" i], table img[title*=".rar" i], table img[title*=".gz" i], table img[title*=".tar" i], table img[title*=".bz2" i] { | |
width:0px!important; height:0px!important; padding-left:16px!important; padding-top:16px!important; background-position: top left !important;background-image: url(https://ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_archive_x16.png) !important; | |
} | |
table img[title*=".txt" i], table img[title*=".rtf" i], table img[title*=".csv" i], table img[title*=".tsv" i] { | |
width:0px!important; height:0px!important; padding-left:16px!important; padding-top:16px!important; background-position: top left !important; background-image:url(https://ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_text_x16.png) !important; | |
} | |
table img[title*=".c" i], table img[title*=".pl" i], table img[title*=".sql" i] { | |
width:0px!important; height:0px!important; padding-left:16px!important; padding-top:16px!important; background-position: top left !important; background- |
 | |
 | |
{username} — ваш ник на ГитХабе; | |
{repository} — репозиторий где хранятся картинки; | |
{branch} — ветка репозитория; | |
{path} — путь к месту нахождения картинки. |
[main] | |
plugins=ifupdown,keyfile | |
[ifupdown] | |
managed=false | |
[keyfile] | |
unmanaged-devices=interface-name:docker0;interface-name:vmnet1;interface-name:vmnet8;interface-name:vboxnet0 |
<?php | |
namespace MyApp\MyBundle\EventListener; | |
use DateTimeZone; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
use Symfony\Component\HttpFoundation\Cookie; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
class ClientEnvironmentListener { |