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
<VirtualHost *:80> | |
SetEnv APPLICATION_ENV "development" | |
ServerName localhost | |
DocumentRoot /var/www/oss/public | |
<Directory “/var/www/oss/public"> | |
DirectoryIndex index.php | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from 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
<a type="button" href="http://google.com" class="btn btn-default" data-container="body" data-trigger="hover" data-html="true" data-content="<h2>TEST</h2><img src='https://drupal.org/files/styles/grid-3/public/project-images/bootstrap_project_1.png' />" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> | |
Popover Bottom | |
</a> |
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
docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi | |
docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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
srose@vagrant:/var/www/vagrant.local$ drush --verbose=2 updatedb | |
Initialized Drupal 7.27 root directory at /var/www/vagrant.local [notice] | |
Initialized Drupal site default at sites/default [notice] | |
Undefined index: SERVER_NAME subdomain_field.module:232 [notice] | |
Undefined index: SERVER_NAME subdomain_field.module:232 [notice] | |
Undefined index: SERVER_NAME subd |
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
function hook_price_calc($wizard_data_array) { | |
$pricing_array = array(); | |
$group_query = new EntityFieldQuery(); | |
$group_query->entityCondition('entity_type', 'node') | |
->entityCondition('bundle', 'group') | |
->propertyCondition('status', 1) | |
->fieldCondition('field_code','value',$wizard_data_array['subdomain'])//TODO ref this field correctly | |
$group_result = $group_query->execute(); | |
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
follow http://perlgeek.de/en/article/set-up-a-clean-utf8-environment | |
createdb -E UTF8 -T template0 --locale=en_US.UTF-8 --owner=cartaro cartaro |
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
mkdir forcefactory | |
cd forcefactory | |
vagrant init | |
add to Vagrantfile | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.box_url = "ubuntu/trusty64" | |
vagrant up |
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
Following https://www.digitalocean.com/community/tutorials/how-to-install-an-upstream-version-of-node-js-on-ubuntu-12-04 to compile and install latest version of node and npm | |
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
packages; | |
apache | |
postfix | |
mysql | |
rt4-clients |
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
#sudo apt-get update | |
#sudo apt-get install python-pip python-dev libxml2-dev libxslt-dev libatlas-base-dev gfortran | |
#curl -O http://download.zeromq.org/zeromq-4.0.4.tar.gz | |
#tar -xzf zeromq-4.0.4.tar.gz | |
#cd zeromq-4.0.4 | |
#./configure --prefix=$VIRTUAL_ENV && make -j && sudo make install | |
#pip install pyzmq tornado | |
curl -O http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh |
OlderNewer