apt-get update
apt-get upgrade
apt-get install build-essential
| // ---------------------------------------------------------- | |
| // 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) {} | 
| 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 | 
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ | 
| # Page TSConfig: | |
| tx_gridelements.setup { | |
| # ID of Element | |
| 1 { | |
| title = Two Columns | |
| config { | |
| colCount = 2 | |
| rowCount = 1 | |
| rows { | |
| 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); | |
| } | 
| #!/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 | 
| <div xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" | |
| xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> | |
| <f:section name="MetaTags"> | |
| {v:resource.record.fal(record: page, field: 'media', table: 'pages') -> v:iterator.extract(key: 'uid') -> v:iterator.first() -> v:var.set(name: 'pageMedia')} | |
| <v:page.header.meta name="keywords" content="{page.keywords}" /> | |
| <v:page.header.meta name="description" content="{page.description}" /> | |
| <v:page.header.meta name="og:title" content="{page.title}" /> | |
| <v:page.header.meta name="og:type" content="article" /> | |
| <v:page.header.meta name="og:url" content="{v:page.absoluteUrl()}" /> | 
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.