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
package main | |
import ( | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
) | |
const ( |
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
diff --git a/includes/Entity/WorkflowState.php b/includes/Entity/WorkflowState.php | |
index 3b01bc1..c064adb 100644 | |
--- a/includes/Entity/WorkflowState.php | |
+++ b/includes/Entity/WorkflowState.php | |
@@ -363,6 +363,9 @@ class WorkflowState extends Entity { | |
$roles = array_merge(array(WORKFLOW_ROLE_AUTHOR_RID), $roles); | |
} | |
+ // Allow modules to add or remove roles based on their own business logic. | |
+ drupal_alter('workflow_user_roles', $roles, $user, $entity_type, $entity); |
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
package main | |
import ( | |
"fmt" | |
"github.com/crowdmob/goamz/aws" | |
"github.com/crowdmob/goamz/dynamodb" | |
) | |
const ( |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/bitly/go-simplejson" | |
"github.com/gorilla/mux" | |
) |
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
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
"os" | |
"github.com/gorilla/mux" | |
"github.com/stretchr/gomniauth" |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
func main() { |
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
package main | |
import ( | |
"flag" | |
"io/ioutil" | |
"os/user" | |
"code.google.com/p/go.crypto/ssh" | |
"github.com/cpliakas/test/hmac" | |
"github.com/go-martini/martini" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Composer Targets" default="build"> | |
<property name="builddir" value="${basedir}/build"/> | |
<property name="composer" value="${builddir}/composer.phar"/> | |
<target name="php-check"> | |
<condition property="php" value="php"> | |
<not> | |
<isset property="${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
#!/usr/bin/env php | |
<?php | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
try { | |
// Get the arguments passed through the command line. | |
$args = (!empty($_SERVER['argv'])) ? $_SERVER['argv'] : array(); | |
if (!isset($args[0])) { | |
$args[0] = $_SERVER['PHP_SELF']; |
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 | |
# curl -L https://bit.ly/vagrant-setup-ubuntu > vagrant-setup.sh | |
# sudo sh vagrant-setup.sh | |
set -e | |
# Add the vagrant user as a password-less sudoer. | |
TMPFILE=$(mktemp) | |
echo "vagrant ALL=(ALL) NOPASSWD: ALL" > $TMPFILE |
NewerOlder