SVN autoremove missing file
svn rm $( svn status [LOCAL_COPY_PATH] | sed -e '/^!/!d' -e 's/^!//' ) [LOCAL_COPY_PATH]
Daniel'strae |
Is cuma cá mhinice a théann tú ar strae; is é is tábhachtaí gurb áil leat do bhealach a aimsiú arís. |
svn rm $( svn status [LOCAL_COPY_PATH] | sed -e '/^!/!d' -e 's/^!//' ) [LOCAL_COPY_PATH]
mysql:
SHOW TABLES
postgresql:\d
postgresql:SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';mysql:
SHOW DATABASES
postgresql:\l
postgresql:SELECT datname FROM pg_database;mysql:
SHOW COLUMNS
postgresql:\dtable
postgresql:SELECT column_name FROM information_schema.columns WHERE table_name ='table';
/** Implementation of hook_form_alter* */function MYMODULE_form_alter(&$form, &$form_state, $form_id){switch($form_id){case 'MYFORMID':/** Invoco la funzione che ingloba tutti i campi 'difficili' in un unico campo.* */$form['#after_build'] = array('_mymodule_form_options');break;}}
/**
* Implementation of hook_theme_registry_alter().
*
* Make jQuery Update's page preprocess function run *after* everything else's,
* so that a theme can't call drupal_get_js() and mess everything up.
*/
function jquery_update_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['page'])) {
if (count($theme_registry['page']['preprocess functions']) > 0) {
// If jquery_update's preprocess function is there already, remove it.
if ($key = array_search('jquery_update_preprocess_page', $theme_registry['page']['preprocess functions'])) {
unset($theme_registry['page']['preprocess functions'][$key]);
}
}
// Now tack it on at the end so it runs after everything else.
$theme_registry['page']['preprocess functions'][] = 'jquery_update_preprocess_page';
}
}
Notare che all'interno del comando sed gli slash (/) sono preceduti da un backslash (\).
ls /path/to/folder | sed 's/\(.*\)/ln -s \/path\/to\/folder\/& \/path\/to\/destination\/folder\/& /' | sh
Metodo 1: link simbolico dell'eseguibile alla cartella /usr/local/bin/:
ln -s /path/to/executable/file /usr/local/bin/name_of_the_new_command
vi /var/www/vhosts/nomedominio.ext/conf/vhost.conf (se non esiste createlo)
<Directory /var/www/vhosts/nomedominio.ext/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir “/var/www/vhosts/nomedominio.ext/httpdocs:/nuovo/path”
</Directory>
<Directory /var/www/vhosts/nomedominio.ext/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir none
</Directory>
/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=nomedominio.ext
<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/var/www/vhosts/example.com/private:/tmp"
</Directory>