images int(11) unsigned DEFAULT '0',
TCA
....
'images' => array(
'exclude' => 0,
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"
<?php | |
if(!function_exists('array_column')) { | |
function array_column(array $input,$column_key,$index_key=null) { | |
$r=array(); | |
foreach($input as $k=>$v) | |
$r[$index_key?$v[$index_key]:$k]=$v[$column_key]; | |
return $r; | |
} | |
}; |
/** | |
* This casper scipt checks for 404 internal links for a given root url. | |
* | |
* Usage: | |
* | |
* $ casperjs 404checker.js http://mysite.tld/ | |
* $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
*/ | |
/*global URI*/ |
#!/bin/sh | |
# | |
# Simple Firewall configuration. | |
# | |
# Author: Nicolargo | |
# | |
# chkconfig: 2345 9 91 | |
# description: Activates/Deactivates the firewall at boot time | |
# | |
### BEGIN INIT INFO |
set :application, "appname" | |
set :repository, "[email protected]:username/project.git" | |
# If you aren't deploying to /u/apps/#{application} on the target | |
# servers (which is the default), you can specify the actual location | |
# via the :deploy_to variable: | |
set :deploy_to, "/var/apps/#{application}" | |
set :scm, :git | |
set :branch, "master" |
set :typo3_local_folders, %W(fileadmin typo3temp uploads) | |
set :typo3_source, %W(index.php t3lib typo3) | |
namespace :deploy do | |
desc "Set up the expected application directory structure on all boxes" | |
task :setup, :except => { :no_release => true } do | |
sudo <<-CMD | |
mkdir -p #{deploy_to} #{releases_path} #{shared_path} | |
CMD | |
typo3_local_folders.each do |asset| |
set :application, "App Name" # Your app name | |
set :repository, "[email protected]: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 |
/** | |
* Casper script to restart Alwaysdata processes. | |
* | |
* Usage: | |
* $ casperjs kill.js [email protected] mysecretpassword | |
*/ | |
var casper = require('casper').create(); | |
casper.start("https://admin.alwaysdata.com/login/"); |
#!/usr/bin/env python | |
# Clone or update all a user's gists | |
# curl -ks https://raw.github.com/gist/5466075/gist-backup.py | USER=fedir python | |
# USER=fedir python gist-backup.py | |
import json | |
import urllib | |
from subprocess import call | |
from urllib import urlopen | |
import os |