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
<!DOCTYPE html> | |
<html> | |
<head> | |
... | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js"></script> | |
<script src="//cdn.auth0.com/js/lock-6.10.min.js"></script> | |
<script> | |
... | |
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
{ | |
"name": "TestEnv", | |
"version": "0.0.0", | |
"authors": [ | |
"Tom Reunes <[email protected]>" | |
], | |
"license": "MIT", | |
"ignore": [ | |
"**/.*", | |
"node_modules", |
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
<style type="text/css"> | |
.something { | |
color: red; | |
font-weight: 600; | |
} | |
</style> | |
# Welcome to @@application.name@@! | |
Thank you for signing up. Please verify your email address by clicking the following link: |
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
widget | |
.on('signin submit', function (options, context) { | |
if (!options.authParams) | |
options.authParams = {}; | |
options.authParams.login_hint = context.email; | |
}); |
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
param | |
( | |
[string]$ServiceName, | |
[string]$VmName, | |
[string]$UserName, | |
[string]$Password | |
) | |
$ErrorActionPreference = "Stop" |
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
public static class CertificateCloudCredentialsFactory | |
{ | |
public static CertificateCloudCredentials FromPublishSettingsFile(string path, string subscriptionName) | |
{ | |
var profile = XDocument.Load(path); | |
var subscriptionId = profile.Descendants("Subscription") | |
.First(element => element.Attribute("Name").Value == subscriptionName) | |
.Attribute("Id").Value; | |
var certificate = new X509Certificate2( | |
Convert.FromBase64String(profile.Descendants("PublishProfile").Descendants("Subscription").Single().Attribute("ManagementCertificate").Value)); |
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
public class WebRole : RoleEntryPoint | |
{ | |
public override bool OnStart() | |
{ | |
using (var serverManager = new ServerManager()) | |
{ | |
var applicationPoolName = serverManager | |
.Sites[RoleEnvironment.CurrentRoleInstance.Id + "_Web"].Applications["/"].ApplicationPoolName; | |
// Update application pool (0 = Terminate / 1 = Suspend). |
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
$.post('/MonetaryCredit', function(data) { | |
var table = $('<table />') | |
.attr('style', 'border: 1px solid black; border-collapse: collapse; width: 100%') | |
.append($('<thead />').attr('style', 'font-weight: bold') | |
.append($('<td>Subscription</td><td>TotalCredit</td><td>Remaining Credit</td><td>Burn Rate</td><td>Might Run Out</td>'))); | |
$.each(data, function(idx, sub) { | |
if (sub.MonetaryCreditInfo != null) { | |
table.append($('<tr />') | |
.attr('style', 'border: 1px solid black;') |
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
function callwebsite() { | |
console.info("Executing job: callwebsite"); | |
var req = require('request'); | |
req.post({ | |
headers: { 'Content-Type': 'application/json' }, | |
url: "http://tempsdm.azurewebsites.net/scheduler/executetask", | |
body: JSON.stringify({ name: "cleanUpData" }) | |
}, | |
function(error, result, body) { |
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
function warmup() { | |
warmUpSite("http://tempsdm.azurewebsites.net/"); | |
warmUpSite("http://sandrino.azurewebsites.net/"); | |
warmUpSite("http://myapp.cloudapp.net/"); | |
} | |
function warmUpSite(url) { | |
console.info("warming up: " + url); | |
var req = require('request'); |