apt-get update
apt-get upgrade
apt-get install build-essential
| #!/usr/bin/env bash | |
| # phase one: core install | |
| # Pro tip: edit the script and use this repository instead to try out the | |
| # codename "Awesome Ocelot" project - which should be even faster than the | |
| # bare 6.2 core: https://github.com/NamelessCoder/TYPO3.CMS.git | |
| # Live demo of "Awesome Ocelot" is at http://staging.namelesscoder.net | |
| git clone https://github.com/TYPO3/TYPO3.CMS.git --depth 1 |
| public function indexAction() { | |
| /** @var \TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory */ | |
| $resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'); | |
| $fileReference = $resourceFactory->getFileReferenceObject($this->settings['test']); | |
| $fileArray = $fileReference->getProperties(); | |
| $this->view->assign('image', $fileArray); | |
| } |
| # Page TSConfig: | |
| tx_gridelements.setup { | |
| # ID of Element | |
| 1 { | |
| title = Two Columns | |
| config { | |
| colCount = 2 | |
| rowCount = 1 | |
| rows { | |
| 1 { |
| function onOpen() { | |
| var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}]; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| ss.addMenu("Fitness Diaries", menuEntries); | |
| } | |
| function createDocFromSheet(){ | |
| var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id | |
| var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries | |
| // get the data from an individual user |
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |