This file contains hidden or 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 | |
# Help menu | |
print_help() { | |
cat <<-HELP | |
This script is used to fix permissions of a Drupal installation | |
you need to provide the following arguments: | |
1) Path to your Drupal installation. | |
2) Username of the user that you want to give files/directories ownership. |
This file contains hidden or 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
$ vagrant plugin install vagrant-proxyconf --plugin-clean-sources --plugin-source http://rubygems.org | |
$ vagrant plugin install vagrant-exec --plugin-clean-sources --plugin-source http://rubygems.org | |
$ vagrant plugin install vagrant-env --plugin-clean-sources --plugin-source http://rubygems.org |
This file contains hidden or 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
function setKeywordText(text) { | |
var el = document.getElementById("new_comment_field"); | |
el.value = text; | |
var evt = document.createEvent("Events"); | |
evt.initEvent("change", true, true); | |
el.dispatchEvent(evt); | |
} | |
setKeywordText("add your content here..."); |
This file contains hidden or 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
version: '3.6' | |
#ddev-generated | |
services: | |
db: | |
container_name: ddev-${DDEV_SITENAME}-db | |
image: $DDEV_DBIMAGE | |
stop_grace_period: 60s | |
volumes: | |
- type: "volume" | |
source: mariadb-database |
This file contains hidden or 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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains hidden or 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_init(). | |
*/ | |
function MY_MODULE_init() { | |
module_invoke('bootstrap', 'element_info'); | |
module_invoke('bootstrap', 'element_info_alter'); | |
} |
This file contains hidden or 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
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
This file contains hidden or 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
{ "rules_when_creating_node_create_user" : { | |
"LABEL" : "when creating node create user", | |
"PLUGIN" : "reaction rule", | |
"OWNER" : "rules", | |
"REQUIRES" : [ "custom_rules", "devel", "rules", "content_access_rules" ], | |
"ON" : { "node_insert" : [] }, | |
"DO" : [ | |
{ "add_password" : { | |
"USING" : { "length" : "8" }, | |
"PROVIDE" : { "password_added" : { "password_added" : "Generated password" } } |