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
*~ | |
.DS_Store | |
.idea |
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 variable identifying the chroot you work in (used in the prompt below) | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-*color) | |
c_cyan=`tput setaf 6` | |
c_blue=`tput setaf 4` |
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
/* | |
Définition du Breadcrumb en fonction d'un Node | |
*/ | |
function _breadcrumb_for_a_node($link_path = NULL){ | |
$breadcrumb = array(); | |
if(!is_null($link_path)){ | |
$breadcrumb[] = l(t('Home'), '<front>'); |
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
/* | |
* Add class and attributes from custom blocks | |
*/ | |
function phptemplate_preprocess_block(&$vars) { | |
if(isset($vars['block']->attributes)) { | |
if(isset($vars['block']->attributes['class'])) { | |
$vars['classes_array'] = array_merge($vars['classes_array'], $vars['block']->attributes['class']); | |
unset($vars['block']->attributes['class']); | |
} |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups |
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 | |
# Drupal cron | |
wget -O - -o /dev/null http://example.com/cron.php?cron_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
# Visit every page from your sitemap.xml | |
wget --quiet http://example.com/sitemap.xml --output-document - | egrep -o "http://example.com/[^<]+" | wget -q --delete-after -i - |
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
name = | |
description = | |
core = 7.x | |
package = Other | |
;dependencies[] = | |
;files[] = | |
;configure = | |
;stylesheets[all][] = |
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 | |
###################### | |
## Script de création de virtualhost + utilisateur + base de données | |
###################### | |
## /!\ Penser a modifier [ROOTPASSWORD] pour mysql | |
###################### | |
## USER | |
# Prompt user informations |
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 | |
# MOBILE | |
drush vset mobile_tools_mobile_url "http://m.local.mysite.com" | |
drush vset mobile_tools_desktop_url "http://local.mysite.com" | |
# modules | |
drush dl -y dummyimage | |
drush en -y devel dummyimage | |
# dummyimage |
OlderNewer