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
for alias in `drush sa`; do echo $alias; drush @$alias updb -y; 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
# | |
# Create random password for every Drupal user from uid 1 to uid 45 | |
# @todo - variable user ID sequence? | |
# | |
for uid in $(seq 45); do uname=$(drush user-information $uid 2>/dev/null | grep -oP "(?<=User name \: ).+"); if [ -n "${uname}" ]; then drush user-password "$uname" --password=$(date | md5sum); fi 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
program WAR; | |
uses crt,DispANS,TextCursor; | |
const | |
top = 1; | |
whichCards : array[2..14] of char = | |
('2','3','4','5','6','7','8','9','0','J','Q','K','A'); | |
type setCards = array[2..14] of integer; |
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/sh | |
# | |
# Run `drush updb` in parallel in groups of 5. | |
# | |
# The for loop is populated by running `drush sa`, but this could also be a | |
# file with aliases on each line. | |
# | |
# The | |
i=0 |
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 | |
/** | |
* @file | |
* local.settings.php (Drupal 6.x) | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "80"; | |
.connect_timeout = 600s; | |
.first_byte_timeout = 600s; | |
.between_bytes_timeout = 600s; | |
} | |
acl purge { | |
"localhost"; |
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
on run argv | |
set mySettingName to item 1 of argv | |
tell application "Terminal" | |
set myWindow to front window | |
set myTab to selected tab of myWindow | |
try | |
set current settings of myTab to settings set mySettingName | |
end try | |
end tell | |
end run |
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 | |
/** | |
* Implementation of theme_preprocess_views_view_table(). | |
*/ | |
function demcctheme_preprocess_views_view_table(&$vars) { | |
$view = &$vars['view']; | |
switch ($view->name) { | |
case 'og_topics': | |
if ($view->current_display == 'block_1') { | |
// Render the node teaser field in a row *below* the other fields. |
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
Show hidden characters
{ | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/IDLE.tmTheme", | |
"create_window_at_startup": false, | |
"default_line_ending": "unix", | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "UTF-8", | |
"find_selected_text": true, |
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
drush php-eval "include_once('sites/all/modules/springboard/ubercart/uc_store/countries/japan_392_1.cif'); japan_install();" |
OlderNewer