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
mkdir sites/default/files | |
chmod a+w sites/default/files | |
cp sites/default/default.settings.php sites/default/settings.php | |
cp sites/default/default.services.yml sites/default/services.yml | |
cp example.gitignore .gitignore | |
chmod a+w sites/default/settings.php | |
chmod a+w sites/default/services.yml |
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
/etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal. | |
/etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup. | |
/etc/php5/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup. |
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
find foldername -type f | xargs sed -i 's/old_string/new_string/g' |
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
var finalString = ''; | |
jQuery(".upgrade-status .project").each(function(){; | |
var title = jQuery("span.project-title a",this).text(); | |
var moduleLink = jQuery("span.project-title a",this).attr("href"); | |
var modulecode = jQuery("span.project-title a",this).attr("href").split("/").pop(); | |
var status = jQuery("div.version-status:nth-child(1)",this).text(); | |
var release = jQuery("div.versions .version-details a",this).text(); | |
var link = jQuery("div.versions .version-details a",this).attr("href"); | |
finalString += title + ',' + status + ',' + release + ',' + link + ',' + moduleLink + ',' + modulecode+'\n'; | |
//console.log(title + ',' + status + ',' + release + ',' + link); |
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
drush dl drupal-6 --drupal-project-rename=drupal6 | |
cd drupal6 | |
drush si --db-url=mysql://root:@localhost/drupal6 |
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
var drushString = "drush en --y "; | |
jQuery(".xray-site-modules ul li a").each( | |
function(){ | |
var url = jQuery(this).attr("href"); | |
var lastPart = url.split("/").pop(); | |
drushString += lastPart + " "; | |
} | |
); | |
console.log(drushString); |
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
var generateString = "http://simplytest.me/project/drupal/"; | |
var drupalVersionString = jQuery(".xray-site div.xray-site-info:nth-child(3)").text(); | |
var drupalVersion = drupalVersionString.split(": ").pop(); | |
generateString += drupalVersion + "?"; | |
jQuery(".xray-site-modules ul li a").each( | |
function(){ | |
var url = jQuery(this).attr("href"); | |
var lastPart = url.split("/").pop(); | |
generateString += "add[]=" + lastPart + "&"; | |
} |
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
drush pml --no-core --type=module --status=enabled --pipe | xargs drush -y dis |
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
git ls-files --modified | |
!! | git add |
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
drush pml --type=Module --status=Enabled --no-core --pipe | paste -s -d, |