Skip to content

Instantly share code, notes, and snippets.

@wheatpenny
Last active December 18, 2015 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wheatpenny/5806574 to your computer and use it in GitHub Desktop.
Save wheatpenny/5806574 to your computer and use it in GitHub Desktop.
dretup: a daily bash command
dretup()
{
drush vset --yes preprocess_js FALSE
drush vset --yes preprocess_css FALSE
drush vset --yes file_private_path "sites/default/files/private"
drush vset --yes file_public_path "sites/default/files"
drush vset --yes page_compression 0
drush vset --yes block_cache 0
drush vset --yes cache 0
drush vset --yes error_level 2
drush vset theme_debug 1
drdis ldap ldap_authentication cas securelogin acquia_spi acquia_agent securepages varnish google_analytics ldap_authorization ldap_authorization_drupal_role ldap_servers ldap_user
dren diff features views_ui devel context_ui field_ui devel_generate google_analytics dblog
drush sql-query "INSERT INTO role_permission VALUES (2,'switch users','devel')"
cowsay "All authenticated users can now switch between other authenticated users."
drush sql-query "INSERT INTO role_permission VALUES (3,'administer contexts','context_ui')"
drush upwd sigworth --password="awesome"
drush updatedb -y
drcc
cowsay "You are now all DRETUP!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment