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
public ActionResult Index() | |
{ | |
const string welcomeNote = "Welcome to ASP.NET MVC {0}!"; | |
var account = CloudStorageAccount.Parse( | |
RoleEnvironment. | |
GetConfigurationSettingValue("DataConnectionString")); | |
ViewBag.Message = (account.BlobEndpoint.IsLoopback) ? | |
string.Format(welcomeNote, " on Local") : |
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
// Developer: Cory Fowler | |
// | |
namespace Net.SyntaxC4.Helpers | |
{ | |
using System.Configuration; | |
using Microsoft.WindowsAzure.ServiceRuntime; | |
/// <summary> | |
/// Provides a way of Providing Context between Cloud and On-Premise Deployment of an Application. |
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
upload_max_filesize = 12M | |
log_errors=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
<html> | |
<head><title>Accessing App Settings from PHP</title></head> | |
<body> | |
<h1>Hello from <?php echo getenv("CloudProvider"); ?></h1> | |
<ul> | |
<li><label>Service Bus Namespace:</label> <?php echo getenv("ServiceBusConnectionString"); ?></li> | |
<li><label>Storage Connection String:</label> <?php echo getenv("StorageConnectionString"); ?> | |
</ul> |
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"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Imported Rule 1" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
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
### Check me into the root of the repo | |
### as .gitattributes | |
*.doc diff=astextplain | |
*.DOC diff=astextplain | |
*.docx diff=astextplain | |
*.DOCX diff=astextplain | |
*.dot diff=astextplain | |
*.DOT diff=astextplain |
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
array('1' => 'value1', '2' => 'value2'); |
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
/* | |
* This code snippet will help break Blob Leases in Windows Azure Storage. | |
* | |
* I did not write this code, it was found at the website below. | |
* | |
* @see http://blogs.msdn.com/b/interoperability/archive/2012/08/01/node-js-script-for-releasing-a-windows-azure-blob-lease.aspx | |
*/ | |
// updated 3/3/2014 for latest version of Azure CLI | |
// Import required modules from Windows Azure Cross Platform Tool's library |
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
<ServiceDefinition name="MyService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> | |
<WebRole name="WebRole1"> | |
<Runtime> | |
<Environment> | |
<Variable name="WhereAmI" value="cloud" /> | |
</Environment> | |
</Runtime> | |
</WebRole> | |
</ServiceDefinition> |
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
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', getenv('WP_DB_NAME')); | |
/** MySQL database username */ | |
define('DB_USER', getenv('WP_DB_USER')); | |
/** MySQL database password */ | |
define('DB_PASSWORD', getenv('WP_DB_PASSWORD')); |
OlderNewer