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
###### | |
# Modify stdHeader (infinite linebreaks with a "|") | |
###### | |
lib.stdheader.10.1.replacement { | |
10 { | |
search = | | |
replace = <br /> | |
} | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define :web do |web| | |
# Every Vagrant virtual environment requires a box to build off of. | |
web.vm.box = "precise64" |
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
## list images from pages:media in TypoScript using FAL and crop it automatically | |
lib.View.Keyvisual = FILES | |
lib.View.Keyvisual { | |
references { | |
data = levelmedia:-1, slide | |
} | |
renderObj = COA | |
renderObj { | |
10 = IMAGE |
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
####-------------------------------------- | |
# | |
# Remove JS and CSS EXT:powermail (v1.6.9) | |
# | |
####-------------------------------------- | |
#---------------------------- | |
# CONSTANTS |
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
###### | |
# Ändern der stdHeader (damit er nicht bei h1 beginnt) | |
###### | |
lib { | |
stdheader { | |
10 { | |
stdWrap.wrap > | |
1.dataWrap = <h2>|</h2> | |
## set's first |
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
#!/bin/bash | |
# Script for placing sudoers.d files with syntax-checking | |
# Making a temporary file to contain the sudoers-changes to be pre-checked | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports |
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
plugin.tx_imagecycle_pi3.nivo.normal.captionWrap { | |
stdWrap { | |
replacement { | |
// replaces first pipe to <h2> (opening tag) | |
// replaces second pipe to </h2> (closing tag) | |
10 { | |
search = #[|]#i | |
replace = <h2> || </h2> | |
useOptionSplitReplace = 1 | |
useRegExp = 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
on alfred_script(q) | |
-- Idea from https://coderwall.com/p/fyfp0w | |
-- automatic connect/disconnect (added 2014-08-25) | |
-- disable wifi on connect (added 2014-09-01) | |
-- Some required settings to get this connect script working | |
-- Set target bluetooth device | |
-- Set label of item to "click" | |
set DeviceToConnect to "jousch.com" | |
set ConnectLabel to "Mit Netzwerk verbinden" |
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 | |
protected function updateFileRelations() { | |
$title = "Update related files"; | |
$countNewsWithFileRelation = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', 'tx_news_domain_model_news', 'deleted=0 AND related_files != ""'); | |
$countFilesWithParent = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', 'tx_news_domain_model_file', 'deleted=0 AND parent != 0'); | |
if ($countFilesWithParent === 0 && $countNewsWithFileRelation > 0) { | |
$newsCount = 0; | |
// select news with related files | |
$newsQuery = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,related_files', 'tx_news_domain_model_news', 'deleted=0 AND related_files !=""'); | |
while ($newsRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($newsQuery)) { |
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
/* | |
* if exists method - a tiny jquery plugin <3 | |
* by Josef Florian Glatz <[email protected]> | |
* | |
*/ | |
$.fn.exists = function(callback) { | |
var args = [].slice.call(arguments, 1); | |
if (this.length) { | |
callback.call(this, args); |
OlderNewer