Skip to content

Instantly share code, notes, and snippets.

@justinlevi
justinlevi / waves-ui react template
Created October 23, 2017 00:43
React Example using wavesjs/waves-ui w/ my forked repo
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// import PropTypes from 'prop-types';
import * as wavesUI from 'waves-ui';
import uuid from "uuid";
class WavesUITimeline extends Component {
⚡ blt vm:nuke && blt vm
blt > vm:nuke:
This will destroy your VM, and delete all associated configuration. Continue? [y] : y
webny: Are you sure you want to destroy the 'webny' VM? [y/N] y
==> webny: Forcing shutdown of VM...
==> webny: Destroying VM and associated drives...
==> webny: Pruning invalid NFS exports. Administrator privileges will be required...
==> webny: [vagrant-hostsupdater] Removing hosts
Password:
@justinlevi
justinlevi / Drupal 8 Travis.yml - Simpletest, PHPUnit, Behat Tests
Created February 15, 2017 15:31
Travis.yml file for testing a custom Drupal 8 Module
# @file
# .travis.yml - Drupal 8 Travis CI Integration
language: php
sudo: false
php:
- 5.6
@justinlevi
justinlevi / chrome-driver-install.sh
Created June 19, 2016 17:48
Shell Script for getting the google chrome driver working in Drupal-VM
#!/usr/bin/env bash
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
sudo apt-get install xvfb
sudo apt-get install unzip
@justinlevi
justinlevi / install-composer-drush.sh
Last active June 1, 2016 14:35 — forked from matthewpizza/install-composer.sh
Install Composer on Webfaction
cd $HOME
ln -s `which php56` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php56
echo -e "\n# Composer\nalias composer=\"php56 \$HOME/composer.phar\"" >> $HOME/.bash_profile
echo -e "\n# Load $HOME/bin\nexport PATH=$HOME/bin:$PATH" >> $HOME/.bash_rc
composer global require drush/drush
ln -s ~/.composer/vendor/drush/drush/drush ~/bin/composer
export DRUSH_PHP=$(which php56)
source $HOME/.bash_profile
@justinlevi
justinlevi / Behat.feature
Created February 25, 2016 20:10
PHPStorm File and Code Templates - Behat
Feature: #[[$Title$]]#
#[[$END$]]#
@justinlevi
justinlevi / scc
Created February 25, 2016 19:50
PHPStorm Behat LiveTemplate - Scenario Comments
# Given: Defines the inital state of the system for the scenario
# When: Describes the action taken by the person/role
# Then: Describes the obeservable system state after the action has been performed
$END$
@justinlevi
justinlevi / sc
Created February 25, 2016 19:49
PHPStorm Behat LiveTemplate - Scenario
Scenario: $Title$
Given $given$
When $when$
And $and$
Then $then$
@justinlevi
justinlevi / ftc
Created February 25, 2016 19:47
PHPStorm Behat LiveTemplate - Feature Comments
# {A} - the benefit or value of the feature
# - In order to achieve -> Business Value
# {B} - the role (or person) who will benefit
# - as a person who benefits; The "author" of this feature
# {C} - short feature description:
# - Description of the feature, the action the person will take
$END$
@justinlevi
justinlevi / ft
Last active February 25, 2016 19:49
PHPStorm Behat LiveTemplate Feature
In order to $Value$
As a $Role$
I need to $Description$
$END$