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 | |
require('rackspace.inc'); | |
$conn = new OpenCloud\Rackspace( | |
'https://identity.api.rackspacecloud.com/v2.0/', | |
array( | |
'username' => '', | |
'apiKey' => '', | |
'tenantName' => 'this is your account number' | |
)); | |
$compute = $conn->Compute('cloudServersOpenStack', 'DFW', 'publicURL'); |
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
cd /tmp/serverlist | |
for i in * ; do scp /var/www/$1.torrent $i:torrent/watch/ ; done |
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\Config; | |
class ConfigMetadata { | |
/** | |
* @var \Drupal\Core\Config\Config | |
*/ | |
protected $config; |
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
while read -r project | |
do | |
output=`drush dl --dev -y -q --destination=allmodules --package-handler=git_drupalorg $project` | |
if [ -z "$output"] | |
then | |
output=`drush dl --dev -y -q --destination=allmodules --default-major=6 --package-handler=git_drupalorg $project` | |
if [ -z "$output"] ; then echo 'module sucks; fi | |
fi | |
done < allmodules.txt |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<testsuites> | |
<testsuite name="Drupal Unit Test Suite" tests="1" assertions="0" failures="0" errors="1" time="0.002637"> | |
<testsuite name="Drupal\Tests\Component\PhpStorage\FileStorageTest" file="/home/chx/www/system/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php" namespace="Drupal\Tests\Component\PhpStorage" fullPackage="Drupal.Tests.Component.PhpStorage" tests="0" assertions="0" failures="0" errors="0" time="0.000000"/> | |
<testsuite name="Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest" file="/home/chx/www/system/core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFastFileStorageTest.php" namespace="Drupal\Tests\Component\PhpStorage" fullPackage="Drupal.Tests.Component.PhpStorage" tests="0" assertions="0" failures="0" errors="0" time="0.000000"/> | |
<testsuite name="Drupal\Tests\Core\Cache\BackendChainImplementationUnitTest" file="/home/chx/www/system/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTe |
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/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php b/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php | |
index 71de4ac..ee9c589 100644 | |
--- a/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php | |
+++ b/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php | |
@@ -306,6 +306,8 @@ private function resolveServices($value) | |
} | |
$value = new Reference($value, $invalidBehavior, $strict); | |
+ } elseif (is_string($value) && 0 === strpos($value, '+')) { | |
+ $value = new Definition(substr($value, 1)); |
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
{ | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/chx/composer-913.git" | |
} | |
], | |
"require": { | |
"foo/bar": "v1" | |
} |
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 | |
declare -A nato | |
nato[A]=Alpha | |
nato[B]=Bravo | |
nato[C]=Charlie | |
nato[D]=Delta | |
nato[E]=Echo | |
nato[F]=Foxtrot | |
nato[G]=Golf | |
nato[H]=Hotel |
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 path/to/dir -type f -name \*.php -exec awk -F ' ' '$1=="namespace" {namespace=substr($2, 1, length($2)-1); gsub("\\\\", "/", namespace);} /^(abstract|final)? *class/ {for (i=1;i<=NF;i++) if ($(i)=="class") namespaced=namespace "/" $(i+1) ; n = length(namespaced); if (namespaced != substr(FILENAME,length(FILENAME)-3-n,n)) print FILENAME " contains " namespaced } ' {} \; |
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
ag -l -G 'context.inc$' blocks |xargs grep -h -B1 delta |awk 'BEGIN { RS = "--"; FS="\n" } /=>/ { print $2 $3 }' |sort|uniq >block_list.txt |