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 | |
//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 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 en --y admin_menu admin_views ckeditor context entityreference features module_filter reldate strongarm pathauto globalredirect chosen devel eazylaunch date admin_menu_toolbar | |
drush ckeditor-download | |
drush chosenplugin | |
drush dis toolbar | |
drush cc all |
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
apache2ctl -S |
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 . -name "*.info" -exec basename \{} .info \; | paste -s -d, |
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, |
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 --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
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
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
drush dl drupal-6 --drupal-project-rename=drupal6 | |
cd drupal6 | |
drush si --db-url=mysql://root:@localhost/drupal6 |
OlderNewer