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
# Just read the help | |
soren@kevin ~/Sites/typo3-hyttekort ./typo3cms help install:setup | |
Alpha version of a setup command. Use with care and at your own risk! | |
COMMAND: | |
typo3_console:install:setup | |
USAGE: | |
/Users/soren/Sites/typo3-hyttekort/./typo3cms ./typo3cms install:setup [<options>] |
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 | |
// Resizer and Image Manipulation | |
// Based on: http://forums.laravel.com/viewtopic.php?id=2648 | |
public function post_edit_logo($id) | |
{ | |
$rules = array( | |
'image' => '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
var seafloor = L.tileLayer('tiles/nz-seafloor/{z}/{x}/{y}.png', { | |
maxZoom: 9, | |
attribution: 'Map data from <a href="http://www.niwa.co.nz/our-science/oceans/bathymetry">NIWA</a>' | |
}); | |
var topo = L.tileLayer('tiles/nz-topo/{z}/{x}/{y}.png', { | |
attribution: '<a href="http://data.linz.govt.nz/">LINZ</a>, <a href="http://lris.scinfo.org.nz/">LRIS</a>' | |
}); | |
var map = new L.Map('map', { |
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
set :application, "App Name" # Your app name | |
set :repository, "git@github.com:xxxxx/xxx.git" # Your git repository | |
set :document_root, "/home/user/www/awesome_app" | |
set :deploy_via, :remote_cache | |
# SSH Settings | |
set :user, "user_ssh" | |
set :password, "password_ssh" | |
set :use_sudo, false |
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 | |
# ref. : man find | |
# printf options | |
# %p Files name. | |
# %P Files name with the name of the command line argument under which it was found removed. | |
# %s Files size in bytes. | |
# %Ak Files last access time in the format specified by k | |
# %Ck Files last status change time | |
# %Tk Files last modification time | |
# Time options k |
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
(function(exports) { | |
function Universe() { | |
this.partialAnswer = 21; | |
} | |
exports.Universe = Universe; | |
// private methods | |
var privatePrototype = { | |
_computeAnswer: function() { | |
return this.partialAnswer * 2; |
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 | |
$template = t3lib_extMgm::extPath($this->extKey) . $this->conf['template']; | |
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView'); | |
$view->setTemplatePathAndFilename($template); | |
$view->assign('data', $this->data); | |
$view->render(); |
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 | |
find . -type f -print0 | while read -d $'\0' file | |
do | |
echo "$file" | |
done |
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
git remote add upstream git@github.com:FluidTYPO3/flux.git | |
git fetch upstream | |
git checkout master | |
git merge upstream/master | |
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d | |
git push origin master |
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
.vagrant | |
Gemfile.lock | |
Berksfile.lock | |
tmp/ |