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
<?xml version="1.0" encoding="UTF-8"?> | |
<publishData> | |
<publishProfile profileName="mySiteSlot - Web Deploy" publishMethod="MSDeploy" publishUrl="mySiteSlot.scm.azurewebsites.net:443" msdeploySite="mySiteSlot" userName="$mySiteSlot" userPWD="mySuperSecretPassword" destinationAppUrl="http://mySiteSlot.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites"> | |
<databases /> | |
</publishProfile> | |
<publishProfile profileName="mySiteSlot - FTP" publishMethod="FTP" publishUrl="ftp://waws-prod-ch1-009.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="mySiteSlot\$mySiteSlot" userPWD="mySuperSecretPassword" destinationAppUrl="http:/mySiteSlot.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="http://windows.azure.com" webSystem="WebSites"> | |
<databases /> | |
</publishProfile> | |
</publishData> |
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
HttpClient client = new HttpClient(); | |
client.BaseAddress = new Uri("https://mysiteslot.scm.azurewebsites.net/api/"); | |
// the creds from my .publishsettings file | |
var byteArray = Encoding.ASCII.GetBytes("username:password"); | |
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray)); | |
// POST to the run action for my job | |
var response = await client.PostAsync("triggeredwebjobs/moJobName/run", null) |
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
{ | |
"runs":[ | |
{ | |
"id":"00000000000000000", | |
"name":"201507062203536167", | |
"status":"Success", | |
"start_time":"2015-07-06T22:03:53.6167675Z", | |
"end_time":"2015-07-06T22:08:30.7575007Z", | |
"duration":"00:04:37.1407332", | |
"output_url":"https://mySiteSlot.scm.azurewebsites.net/vfs/data/jobs/triggered/MyWebJob/201507062203536167/output_log.txt", |
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
curl -k -g -X POST -d "payload={\"text\":\"my important bot notification\", \"channel\":\"#monitoring\", \"username\":\"computer-bot\", \"icon_emoji\":\":computer:\"}" https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XxXxXxXxXXXxxXXXxxx |
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
# When I use Git, call Hub instead | |
Set-Alias git hub |
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
@echo off | |
doskey git=hub |
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
var express = require('express'), | |
azureMobileApps = require('azure-mobile-apps'), | |
bodyParser = require('body-parser'), // npm install body-parser --save | |
multer = require('multer'); // npm install multer --save | |
// Set up a standard Express app | |
var app = express(); | |
app.use(bodyParser.json()); // for parsing application/json | |
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded |
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
var azure = require('azure-sb'); | |
module.exports = { | |
"post": function (req, res, next) { | |
var p = req.body; | |
var serviceBus = azure.createServiceBusService(); | |
var queue = "lunchsearch"; | |
if (p.token && p.token === "myslackcommandtoken") { | |
// build the body of the brokered message with info I want to pass to my Function |
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
{ | |
"bindings":[ | |
{ | |
"name":"myQueueItem", | |
"type":"serviceBusTrigger", | |
"direction":"in", | |
"queueName":"lunchsearch", | |
"connection":"LunchConnection", | |
"accessRights":"Manage" | |
} |