This file contains hidden or 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
# This function will execute a command as the original account | |
# that a user logged in with. This is useful in conjunction with | |
# su and sudo. | |
# | |
# e.g. | |
# If you su to root ${HOME} will be /root rather than the home | |
# of the account you initially logged in with. | |
# | |
# execute-as-login COMMAND [VARIABLE] | |
# |
This file contains hidden or 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 | |
# usage: atomic-symlink-create-or-update.sh -t target/path symlink | |
# This script will atomically update a symlink or simply create it if | |
# it does not already exist. Relinking a symlink is not an atomic operation, | |
# as it requires a call to rm() then to link(). | |
# Instead we use mv as rename() is atomic. | |
# See: http://linux.die.net/man/2/rename |
This file contains hidden or 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
/* | |
* In varnish 3.0 the includes must be outside a subroutine. | |
*/ | |
C{ | |
#include <stddef.h> | |
#include <sys/time.h> | |
}C | |
This file contains hidden or 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 | |
/** | |
* @file | |
* This file contains a drush command to fix acquia solr service issues on | |
* the 28th Aug 2012. | |
* @see http://status.acquia.com/node/31 | |
*/ | |
/** | |
* Implements hook_drush_command(). |
This file contains hidden or 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 | |
// Place the following in your settings.php. | |
$conf['proxy_server'] = 'www-cache.my.proxy.com'; | |
$conf['proxy_port'] = '80'; | |
define('ACQUIA_DEVELOPMENT_NOSSL', TRUE); |
This file contains hidden or 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 | |
$server = search_api_server_load('acquia_search_solr_server'); | |
$index = search_api_index_load('node_index'); | |
$query = new SearchApiQuery($index); | |
$query->condition('type', 'article'); | |
$results = $query->execute(); |
This file contains hidden or 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
for i in $(find . -name *.info); do sed -i 's/target/replace/g' $i; done |
This file contains hidden or 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
drush php-eval "print_r(theme_get_registry());" | grep "${TEMPLATE_SEARCH_MATCH}" |
This file contains hidden or 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
SELECT | |
uid, | |
name, | |
mail, | |
FROM_UNIXTIME(created) AS 'account created', | |
FROM_UNIXTIME(access) AS 'last access', | |
FROM_UNIXTIME(login) AS 'last login' | |
FROM users | |
WHERE mail = '[email protected]'\G |
OlderNewer