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
<?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
// 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 | |
/** | |
* 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
# add snippet into <head> | |
[[BabelLinks? | |
&tpl=`babelCanonicalTag` | |
&showCurrent=`1` ]] | |
# create chunk with name babelCanonicalTag | |
<link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
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
collections.renderer.imageplus = function(value, metaData, record, rowIndex, colIndex, store) { | |
if (value != '' && value != null) { | |
var data = Ext.decode(value); | |
var url = MODx.config.connectors_url + 'system/phpthumb.php?imageplus=1'; | |
var params = {}; | |
params.src = 'upload/'+MODx.config['collections.renderer_image_path'] + data.sourceImg.src; | |
params.w = 100; | |
if (data.sourceImg.src.indexOf('.png') !== -1) { | |
params.f = 'png'; |
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"); |