- Mac OS host machine (10.6+)
- VirtualBox (4.1+)
- Vagrant (1.0+)
- Connecting via VPN to a remote network
- Mounting a directory from your host machine to the guest machine using NFS with something like this:
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
var gulp = require('gulp'); | |
var clean = require('gulp-clean'); | |
var gutil = require('gulp-util'); | |
var coffee = require('gulp-coffee'); | |
var sass = require('gulp-ruby-sass'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
gulp.task('fonts', function() { | |
return gulp.src(['bower_components/font-awesome/fonts/fontawesome-webfont.*']) |
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
{ "commerce_tax_rate_pa_sales_tax" : { | |
"LABEL" : "Calculate PA Sales Tax", | |
"PLUGIN" : "rule", | |
"OWNER" : "rules", | |
"TAGS" : [ "Commerce Tax", "sales_tax" ], | |
"REQUIRES" : [ "commerce_order", "rules", "commerce_tax" ], | |
"USES VARIABLES" : { "commerce_line_item" : { "label" : "Line item", "type" : "commerce_line_item" } }, | |
"IF" : [ | |
{ "commerce_order_compare_address" : { | |
"commerce_order" : [ "commerce-line-item:order" ], |
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
set nocompatible | |
syntax on | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set sidescroll=1 | |
set sidescrolloff=3 |
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
{if $product.tracking == "ProductTracking::TRACK_WITH_OPTIONS"|enum} | |
{assign var="out_of_stock_text" value=__("text_combination_out_of_stock")} | |
{else} | |
{assign var="out_of_stock_text" value=__("text_out_of_stock")} | |
{/if} | |
{if ($product.price|floatval || $product.zero_price_action == "P" || $product.zero_price_action == "A" || (!$product.price|floatval && $product.zero_price_action == "R")) && !($settings.General.allow_anonymous_shopping == "hide_price_and_add_to_cart" && !$auth.user_id)} | |
{assign var="show_price_values" value=true} | |
{else} | |
{assign var="show_price_values" value=false} |
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 | |
// Get the Role ID we want to add all permissions to | |
$rid = user_role_load_by_name('Super Administrator')->rid; | |
// Get a listing of all of the permissions | |
$perms = array_keys(user_permission_get_modules()); | |
// Grant permissions for the role | |
user_role_grant_permissions($rid, $perms); |
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/bash | |
# Add Vagrant's hostupdater commands to sudoers, for `vagrant up` without a password | |
# force sudo on self. | |
if [ $( id -u ) -ne 0 ]; then | |
exec sudo -p "Login password for %p: " "$0" "$@" | |
exit $? | |
fi | |
# Stage updated sudoers in a temporary file for syntax checking |
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
# new drupal vagrant install | |
# A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm), | |
# augments config (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses | |
# include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>. | |
function newd { | |
if [ $2 == ]; then | |
echo 'USAGE: newd8 <version> <sitename>' |
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
#0 d8 site: node/1 comment form with full html input format by uid0. | |
<script>alert('XSS')</script> | |
_________________________________________________________________________________________________ | |
#1 d8 site: node/1 comment form with full html input format by uid0. | |
It will move the site into maintenance mode | |
<script>setTimeout(function(){ | |
jQuery.get('/drupal_test/admin/config/development/maintenance', | |
function (data, status) { | |
if (status == 'success') { |
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 aptitude install ruby-full | |
sudo gem install sass | |
sudo gem install compass |
OlderNewer