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
#!/bin/sh | |
if [ ! $C2G_CONCURRENCY ]; then | |
C2G_CONCURRENCY=8 # set to the number of cores you want to pwn with the migration process | |
fi | |
if [ ! $C2G_REPOSITORY ]; then | |
C2G_REPOSITORY=/var/git/cvsmirror # replace with path to the root of the local repository | |
fi | |
if [ ! $C2G_DESTINATION ]; then | |
C2G_DESTINATION=/var/git/repositories |
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 | |
/** | |
* @file | |
* Plugin to provide access control/visibility based on specified get argument matching user-specified string | |
*/ | |
$plugin = array( | |
'title' => t("GET: comparison"), | |
'description' => t('Control access by comparing a GET argument.'), | |
'callback' => 'ctools_get_ctools_access_check', |
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
#!/bin/bash | |
function compress { | |
echo "Crushing $1" | |
pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB $1 compressed/$1 > /dev/null | |
mv compressed/$image ./ | |
echo "Compressing $1" | |
optipng -o9 $1 > /dev/null | |
} |
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 | |
/** | |
* | |
* | |
*/ | |
namespace Drupal\Core\Plugin\Discovery; | |
use Drupal\Component\Plugin\Discovery\DiscoveryInterface; |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: minecraft | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# X-Interactive: true | |
# Short-Description: Start/stop Tekkit minecraft server | |
# Description: This file should be used to construct scripts to be |
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 wapply --index http://drupal.org/files/session-ph53_0.patch | |
$ » git st | |
## 8.x | |
M core/includes/bootstrap.inc | |
M core/lib/Drupal/Core/CoreBundle.php | |
A core/lib/Drupal/Core/Session/Handler/DatabaseSessionHandler.php | |
A core/lib/Drupal/Core/Session/Proxy/CookieOverrideProxy.php | |
A core/lib/Drupal/Core/Session/Session.php | |
A core/lib/Drupal/Core/Session/StaticSessionFactory.php | |
A core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php |
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 | |
/** | |
* @file | |
* Contains \Drupal\Core\Plugin\DefaultPluginManager | |
*/ | |
namespace Drupal\Core\Plugin; | |
use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface; |
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 | |
/** | |
* @file | |
* Contains Drupal\Core\Plugin\Discovery\YamlDiscovery. | |
*/ | |
namespace Drupal\Core\Plugin\Discovery; | |
use Drupal\Component\Plugin\Discovery\DiscoveryInterface; |
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 | |
// Don't cache any cart of checkout pages. | |
// Code based on CacheExclude - http://drupal.org/project/cacheexclude | |
if (arg(0) == 'cart') { | |
drupal_page_is_cacheable(FALSE); | |
return; | |
} |
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
diff --git a/core/modules/system/system.module b/core/modules/system/system.module | |
index 5632cce..6ce4653 100644 | |
--- a/core/modules/system/system.module | |
+++ b/core/modules/system/system.module | |
@@ -105,14 +105,16 @@ function system_help($path, $arg) { | |
$output = '<p>' . t('Download additional <a href="@modules">contributed modules</a> to extend Drupal\'s functionality.', array('@modules' => 'http://drupal.org/project/modules')) . '</p>'; | |
if (module_exists('update')) { | |
if (update_manager_access()) { | |
- $output .= '<p>' . t('Regularly review and install <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated.', array('@update-php' => $base_url . '/core/update.php', '@updates' => url('admin/reports/updates'))) . '</p>'; | |
+ $output .= '<p>' . t('Regularly review and install <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a |
OlderNewer