This file contains 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
<?php | |
/** | |
* alphabeticalLetters | |
* | |
* DESCRIPTION | |
* | |
* This Snippet return alphabetical Letters from Collection | |
* | |
* PROPERTIES: | |
* |
This file contains 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
/** | |
* embed SVG | |
* Example: <span>{{ "logo"|svg }}</span> | |
* | |
* @param \Twig\Environment $twig The Twig environment. | |
* @return \Twig\Environment | |
*/ | |
function twig_svg_embed($twig) | |
{ | |
$twig->addFilter( |
This file contains 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
data_directory: _gitify/ | |
backup_directory: _backup/ | |
packages: | |
modx.com: | |
service_url: http://rest.modx.com/extras/ | |
packages: | |
- pthumb | |
- pdotools | |
- collections | |
modmore.com: |
This file contains 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
// hide tab focus if not needed | |
* { | |
&:focus, | |
&:-moz-focusring { | |
outline: 0 !important; | |
} | |
} | |
.focus-outline { |
This file contains 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
<?php | |
/** | |
* instagramLatestPosts | |
* | |
* DESCRIPTION | |
* | |
* This Snippet return latest posts from Instagram as iframe embed. | |
* | |
* PROPERTIES: | |
* |
This file contains 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
<?php | |
/** | |
* loopJSON | |
* | |
* DESCRIPTION | |
* | |
* This Snippet loop a JSON Array. | |
* | |
* PROPERTIES: | |
* |
This file contains 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
<!-- | |
$basePxFor1rem = 16; | |
$baseDesignWidthFromAdobeXD = 1920; | |
$baseFontSize = 100 * $basePxFor1rem / $baseDesignWidthFromAdobeXD; | |
Result: .833333333333333vw; | |
--> | |
<style> | |
html { | |
font-size: .833333333333333vw; |
This file contains 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
collections.combo.TVNAME = function(config) { | |
config = config || {}; | |
Ext.applyIf(config,{ | |
store: new Ext.data.SimpleStore({ | |
fields: ['v'] | |
,data: [ | |
['val1'], | |
['val2'], | |
['val3'] | |
] |
This file contains 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
find -type d -exec /bin/chmod 755 {} \; | |
find -type f -exec /bin/chmod 644 {} \; | |
find -type f -name "*.php*" -exec /bin/chmod 600 {} \; |
This file contains 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
header("X-Content-Type-Options: nosniff"); | |
header("X-XSS-Protection: 1; mode=block"); | |
header("X-Frame-Options: SAMEORIGIN"); | |
header("Connection: keep-alive"); | |
header("ETag: "); | |
header("Content-Security-Policy: base-uri https://nixlos.de; default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; child-src https://nixlos.de"); |