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
<?php | |
//Github sanity check | |
$secret = 'my_secret_entered_on_webhook_settings_page'; | |
$headers = getallheaders(); | |
$hubSignature = $headers['X-Hub-Signature']; | |
list($algo, $hash) = explode('=', $hubSignature, 2); | |
$payload = file_get_contents('php://input'); | |
$data = json_decode($payload); | |
$payloadHash = hash_hmac($algo, $payload, $secret); |
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
apache2ctl -S |
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
find . -name "*.info" -exec basename \{} .info \; | paste -s -d, |
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
drush pml --type=Module --status=Enabled --no-core --pipe | paste -s -d, |
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
git ls-files --modified | |
!! | git add |
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
drush pml --no-core --type=module --status=enabled --pipe | xargs drush -y dis |
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
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 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 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 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); |
OlderNewer