Skip to content

Instantly share code, notes, and snippets.

View PetraMotz's full-sized avatar

Petra PetraMotz

View GitHub Profile
https://regex101.com/
^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$
This regex will enforce these rules:
At least one upper case English letter, (?=.*?[A-Z])
At least one lower case English letter, (?=.*?[a-z])
@PetraMotz
PetraMotz / umlaute.php
Created August 4, 2021 12:03
PHP #umlaute #url
$mail = 'info@ärztezentrum-wörishofen.de';
$onlim = '[email protected]'; ACE
$temp = '[email protected]'; ASCII
$con = idn_to_ascii ('info@ärztezentrum-wörishofen.de' , $flags = IDNA_DEFAULT , $variant = INTL_IDNA_VARIANT_UTS46 , $idna_info = null ) ;
$converted = idn_to_utf8 ( $con , 0 , $variant = INTL_IDNA_VARIANT_UTS46 , $idna_info = null );
@PetraMotz
PetraMotz / keyvalue.php
Created August 4, 2021 12:03
PHP #php #keyvalue
$t =
array('strProjektbezeichnung' => 1,
'strPlanbezeichnung' =>1,
'strPlanNr' 1,
);
@PetraMotz
PetraMotz / sortable drag and drop.js
Created August 4, 2021 12:02
jQuery #js #draganddrop #sortable
https://jqueryui.com/sortable/#placeholder
<div class="existingImagesContainer fullSize mb-2 d-flex align-items-end" id="sortingImages">
<div class="existingImageBox mr-2 ui-state-default" ></div>
</div>
$('#sortingImages').sortable({
placeholder: "ui-state-highlight",
forcePlaceholderSize: true
in Listenansicht auf Root Seite klicken, Gruppe wählen, Optionen
setup.override.edit_docModuleUpload = 1
setup.default.edit_docModuleUpload = 1
auf 1 Stellen
Listenansicht Verzeichnisfreigaben
@PetraMotz
PetraMotz / phpstorm.txt
Created August 4, 2021 12:01
PHP #shortcuts #php
PHP Storm
alle gefundenen Markieren => STRG + ALT + SHIFT+ J
collapse all => STRG + SHIFT + NumPad- / +
Code Vervollständigen => Strg + Leertaste
Schnelle Dokumentation anschauen => Strg + Q
Gesamte Zwischenablage zeigen => Strg + Umschalttaste + V
@PetraMotz
PetraMotz / region.php
Created August 4, 2021 12:00
PHP #php #phpstorm
//<editor-fold desc="Changes"> //</editor-fold>
@PetraMotz
PetraMotz / pdf cache löschen.ts
Created August 4, 2021 12:00
TYPO3 #t3 #pdf #cache
in htaccess datei
<FilesMatch ".(doc|pdf)$">
Header unset ETag
Header unset Pragma
Header unset Cache-Control
Header unset Last-Modified
Header set Pragma "no-cache"
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
@PetraMotz
PetraMotz / animate.scss
Created August 4, 2021 11:59
SCSS #animate #scss
animation: animateArrowsHeaderTop 0.8s infinite;
@keyframes animateArrowsHeaderTop{
0% {top: 30px}
25% {top: 32px}
50% {top: 34px}
75% {top: 32px}
100% {top: 30px}
}
public function fixFeloginPasswordReset() {
//mail('[email protected]', 'debug', 'login');
if ($_REQUEST['tx_felogin_pi1']['forgot_hash']) {
$GLOBALS['TSFE']->fe_user->setAndSaveSessionData('forgot_hash', ['forgot_hash' => $_REQUEST['tx_felogin_pi1']['forgot_hash']]);
}
}
page.1 = USER_INT
page.1 {