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
def provision | |
resource.catalog.resource('chroot', resource[:chroot].title).provider.source_exec(puppet_apply_cmd) | |
end |
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
provision {'worker': | |
provider => 'puppet', | |
provision => 'worker.pp' | |
require => Chroot['worker'], | |
chroot => Chroot['worker'] | |
} |
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
SELECT * FROM `table_name` | |
ORDER BY ( CASE | |
WHEN order_column = 2 THEN 0 | |
WHEN order_column = 1 THEN 1 | |
WHEN order_column = 3 THEN 2 | |
END ) |
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
// Last commit: 1032a75 (2013-03-12 17:11:25 -0700) | |
(function() { | |
window.DS = Ember.Namespace.create({ | |
// this one goes past 11 | |
CURRENT_API_REVISION: 12 | |
}); | |
})(); |
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 | |
class ReconnectingPDO | |
{ | |
protected $dsn, $username, $password, $pdo, $driver_options; | |
public function __construct($dsn, $username = "", $password = "", $driver_options = array()) | |
{ | |
$this->dsn = $dsn; | |
$this->username = $username; | |
$this->password = $password; |
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
tell application "Coda" | |
activate | |
set _sites to every site's site name | |
tell document 1 | |
connect to site with site {sites whose site name is {choose from list _sites} as string} | |
end tell | |
end tell |
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/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
index 6100d31..444921e 100644 | |
--- a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
+++ b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
@@ -71,7 +71,7 @@ EOT | |
} | |
$entity = $input->getArgument('entity'); | |
- $entityNamespace = $namespace.'\\'.$bundle.'\\Entities'; | |
+ $entityNamespace = $namespace.'\\'.$bundle.'\\Entity'; |
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 | |
source /usr/local/aws/lib/lib.sh | |
export $( | |
ruby <<RUBY | |
require 'rexml/document' | |
doc = REXML::Document.new('`ec2_get_option_query_env list-role-params`') | |
doc.elements.each('//param') do |ele| | |
puts ele.attributes["name"].upcase + "=" + ele.elements[1].text |
NewerOlder