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
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 ( | |
"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
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 ( | |
"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
#!/bin/bash | |
apt-get install dkms build-essential linux-headers-`uname -r` linux-headers-generic xserver-xorg xserver-xorg-core | |
mount /dev/cdrom /mnt | |
bash /mnt/VBoxLinuxAdditions.run | |
unount /mnt |
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
UPDATE users SET mail = CONCAT('test+', uid, '@example.com'); |
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 | |
drush vset --yes apachesolr_read_only 1 |
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 | |
cat <<EOF >> /etc/network/interfaces | |
# Virtual network interface | |
auto eth1 | |
iface eth1 inet static | |
name Host-only adapter | |
address 192.168.56.15 | |
netmask 255.255.255.0 |
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 | |
xvfb-run --server-args="-screen 0, 1024x768x24" wkhtmltopdf -q -B 0 -T 0 -L 0 -R 0 http://google.com google.com.pdf | |
convert -density 300 google.com.pdf -append google.com.jpg |
OlderNewer