This small script provides some code to check a project of your installation (located in .../www
) against the associated git commit on drupal.org.
Notice: currently the root path and temp directory are hardcoded.
Check status of views module.
#!/bin/bash | |
function drupal-install() { | |
sudo rm -rf sites/default; | |
sudo git checkout -- sites/default; | |
sudo chmod -R 777 sites/default; | |
sudo chown -R `whoami` sites/default; | |
sudo git checkout -- sites/default; | |
sudo chown -R `whoami` sites/default; | |
#exit; |
doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* | |
doskey ls=ls $1 --color | |
doskey ll=ls -la --color | |
doskey sbl = sublime $* | |
doskey sshs = ssh tom@188.230.237.133 | |
doskey oocd = openocd-x64-0.6.1 -f .\stm32f4discovery.cfg | |
doskey oocd7 = openocd-x64-0.7.0 -f .\stm32f4discovery.cfg | |
doskey sshkey = type C:\Users\dcrystalj\.ssh\id_rsa.pub | clip & echo "ssh key in clipboard" | |
:: Git |
#!/bin/bash | |
# usage: drupal-quick-dump user host database D8 ("D8" is optional) | |
# remember to chmod u+x drupal-quick-dump.sh | |
BOLD="$(tput bold)" | |
RED="$(tput setaf 1)" | |
GREEN="$(tput setaf 2)" | |
MAG="$(tput setaf 5)" | |
RESET="$(tput sgr0)" | |
USER="$1" |
#!/bin/bash | |
GITURL="http://git.drupal.org/project/dkan.git" | |
BRANCH="7.x-1.x" | |
PREFIX="projects/dkan" | |
echo "Pulling in latest updates on branch $BRANCH from remote $GITURL." | |
# Change to git root directory. | |
cd "$(git rev-parse --show-toplevel)" | |
git subtree pull --squash --prefix=$PREFIX $GITURL $BRANCH |
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> | |
</head> | |
<body style="margin:0px;padding:0px;overflow:hidden"> | |
<iframe src="__URL_HERE__" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe> | |
</body> | |
</html> |
<?php | |
// Get a nicely formatted amount for Ex VAT & Vat order totals. | |
// Get the order wrapper | |
$order_wrapper = entity_metadata_wrapper('commerce_order', $order); | |
// Order total. | |
$order_total = $order_wrapper->commerce_order_total->value(); | |
// Get ex vat amount. |
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
$view = new view(); | |
$view->name = 'enabled_modules'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'system'; | |
$view->human_name = 'Enabled Modules'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |