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
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
/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
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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
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 options = ''; | |
jQuery('.form-item-new-storage-type select option').each(function(){ | |
options = options + (jQuery(this).text() + '<<' + jQuery(this).val() + '\n'); | |
}); | |
console.log(options); | |
/** | |
* Copy paste the output from console.log to Google Spreadsheet | |
* You can use =SPLIT(A1,"<<"); function to split the key value pairs. | |
* / |
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
sudo add-apt-repository ppa:git-core/ppa -y | |
sudo apt-get update | |
sudo apt-get install git | |
git --version |
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 sql-dump > project_dev1.$(date +%Y%m%d\-%H%M).sql | |
drush sql-dump > ${PWD##*/}-$(date +%Y-%m-%d\-%H-%M).sql |
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
$view = new view(); | |
$view->name = 'testcomments'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'comment'; | |
$view->human_name = 'Test Comments'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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 | |
drush sqlq "select type from node_type" | while read content_type; | |
do | |
echo "Changing comment settings for $content_type" | |
drush vset comment_default_mode_$content_type 0 | |
drush vset comment_default_per_page_$content_type 50 | |
drush vset comment_$content_type 2 | |
drush vset comment_form_location_$content_type 1 | |
drush vset comment_preview_$content_type 0 | |
drush vset comment_subject_field_$content_type 0 |