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
Search: \[submodule ".*/([^\/]*)"\]\n\tpath = (.*)\n\turl = (.*) | |
Replace: git submodule add $3 $2\ngit commit -m "[TASK] Add puppet module $1" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<code_scheme name="TYPO3_jr"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="4" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="8" /> | |
<option name="TAB_SIZE" value="4" /> | |
<option name="USE_TAB_CHARACTER" value="true" /> | |
<option name="SMART_TABS" value="false" /> | |
<option name="LABEL_INDENT_SIZE" value="0" /> |
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 | |
$pattern = Array( | |
'/<pre>(\s)*<code class="(\S*)">/i', | |
'/<\/code><\/pre>/i', | |
'/<pre>/i', | |
'/<\/pre>/i', | |
'/@(\S*)@/i', | |
); |
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 | |
/* | |
* Detects a Request through HTTP/HTTPS Proxy and sets the coresponding server variables. | |
* | |
* usage: | |
* in php.ini or .htaccess | |
* php_value auto_prepend_file /var/www/proxy.php | |
* | |
* in pool.d for php-fpm | |
* php_value[auto_prepend_file] = /var/www/proxy.php |
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
{ | |
"extractors": [ | |
{ | |
"condition_type": "none", | |
"condition_value": "", | |
"converters": [], | |
"cursor_strategy": "copy", | |
"extractor_config": { | |
"regex_value": "cat=\"(.*?)\"" | |
}, |
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
#echo "deb http://apt.puppetlabs.com/ wheezy main dependencies" >> /etc/apt/sources.list.d/puppet.list | |
#echo "deb http://apt.puppetlabs.com/ precise main dependencies" >> /etc/apt/sources.list.d/puppet.list | |
echo "deb http://apt.puppetlabs.com/ trusty main dependencies" >> /etc/apt/sources.list.d/puppet.list | |
wget http://apt.puppetlabs.com/pubkey.gpg | |
gpg --import pubkey.gpg | |
gpg -a --export 4BD6EC30 | apt-key add - | |
rm pubkey.gpg | |
aptitude install -y puppet-common |
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
# File: /etc/postfix/main.cf | |
... | |
virtual_alias_maps = regexp:/etc/postfix/virtual | |
... |
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 | |
namespace WE\BaseBox\Aspects; | |
/* * | |
* This script belongs to the TYPO3 Flow package "WE.BaseBox". * | |
* * | |
* It is free software; you can redistribute it and/or modify it under * | |
* the terms of the GNU Lesser General Public License, either version 3 * | |
* of the License, or (at your option) any later version. * | |
* * |
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
cd Data/Persistent/Resources | |
ls -1 | while read F; do | |
echo '-' | |
resourcepointer=$(echo "SELECT resourcepointer FROM typo3_flow_resource_resource WHERE resourcepointer = '${F}';" | mysql 'DBNAME' -u'DBUSER' -p'DBPASSWORD' -s) | |
if [ -z "${resourcepointer}" ]; then | |
rm ${F} | |
fi | |
done |
OlderNewer