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
$conf['twitter_consumer_key'] = [consumer_key_here]; | |
$conf['twitter_consumer_secret'] = [consumer_secret_here]; | |
$conf['twitter_access_token'] = [access_token_here]; | |
$conf['twitter_token_secret'] = [token_secret_here]; |
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 | |
/** | |
* @file | |
* Tweet block bean plugin. | |
*/ | |
/** | |
* Require the twitteroauth library | |
*/ | |
require_once(drupal_get_path('module','bean_tweets') . '/libraries/twitteroauth/twitteroauth.php'); |
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 | |
/** | |
* @file | |
* Bean plugin for showing tweets for a specified twitter user | |
*/ | |
/** | |
* Implements hook_bean_types_api_info(). | |
*/ | |
function bean_tweets_bean_types_api_info() { |
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
name = Bean Tweets | |
description = Provides a block for a twitter user's tweets | |
core = 7.x | |
dependencies[] = bean | |
package = Bean | |
files[] = "plugins/bean/bean_tweets.tweet_block.inc" | |
configure = admin/config/system/bean_tweets |
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/sh | |
# Start from the repository root. | |
cd ./$(git rev-parse --show-cdup) | |
compass compile |
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/sh | |
BRANCH_NAME="$(git symbolic-ref HEAD 2>/dev/null)" || | |
BRANCH_NAME="detached" | |
BRANCH_NAME=${BRANCH_NAME##refs/heads/} | |
if [ "$BRANCH_NAME" = "production" ]; then | |
compass compile | |
git add docroot/sites/all/themes/ilr_theme/css/ -f | |
git diff --cached --exit-code > /dev/null |
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 | |
/** | |
* Implements hook_node_view(). | |
*/ | |
function tweet_this_node_view($node, $view_mode, $langcode) { | |
if ($view_mode == "full" && $node->type == "article") { | |
_tweet_this_generate_button($node); | |
} |
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
--- | |
- hosts: all | |
gather_facts: yes | |
vars_files: | |
- vars/main.yml | |
pre_tasks: | |
- include: tasks/init.yml |
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 | |
REPO_BASE='[project foldername here (the folder above docroot)]' | |
# check running from the repository base | |
CURRENT_DIR=${PWD##*/} | |
if [ ! "$CURRENT_DIR" = $REPO_BASE ]; then | |
echo 'Please be sure that you are running this command from the root of the repo.' | |
exit 2 | |
fi |
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
drupal_domain: "a-fro.dev" | |
drupal_core_path: "/var/www/{{ drupal_domain }}/docroot" | |
drupal_repo_url: "git@github.com:a-fro/a-fro.com.git" | |
drupal_site_name: "Aaron Froehlich's Blog" | |
drupal_mysql_user: drupal | |
drupal_mysql_password: password | |
drupal_mysql_database: dbname | |
drupal_admin: admin | |
drupal_admin_password: password | |
drupal_theme_path: "{{ drupal_core_path }}/themes/afro" |