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"?> | |
<!-- | |
This configuration file is required if iisnode is used to run node processes behind | |
IIS or IIS Express. For more information, visit below link | |
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config | |
--> | |
<configuration> | |
<system.webServer> |
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
from azure.storage.blob import ( | |
BlockBlobService, | |
ContainerPermissions | |
) | |
from datetime import datetime, timedelta | |
account_name ="xxxx" | |
account_key ="xxxxxx=" | |
CONTAINER_NAME='samplecontainer' |
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
from azure.storage.blob import ( | |
BlockBlobService, | |
ContainerPermissions | |
) | |
from azure.storage.models import CorsRule | |
from datetime import datetime, timedelta | |
ACCOUNT_NAME ="XXXXX" | |
ACCOUNT_KEY ="XXXXX" | |
CONTAINER_NAME='XXXXX' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script> | |
<script type="text/javascript" src="node_modules/ng-file-upload/dist/ng-file-upload-shim.min.js"></script> | |
<script type="text/javascript" src="node_modules/ng-file-upload/dist/ng-file-upload.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
</head> | |
<body ng-app="fileUpload" ng-controller="MyCtrl"> | |
<style> |
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
import requests | |
conv_auth = ('username', 'password') | |
r = requests.post('https://xxxx.scm.azurewebsites.net/api/triggeredwebjobs/job_name/run', auth=conv_auth) | |
print r.text | |
print r.status_code |
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
router.get('/', function (req, res, next) { | |
console.log(JSON.stringify(req.headers)); | |
https.get("https://easyauthnodejs.azurewebsites.net/.auth/me", function (response) { | |
console.log("statusCode: ", response.statusCode); | |
// req.session.facebook = "yes"; | |
var body = ''; | |
response.on('data', function (d) { | |
body += d; | |
}); | |
response.on('end', function () { |
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"?> | |
<configuration> | |
<!-- | |
See PTVS documentation at http://pytools.codeplex.com/documentation | |
for additional instructions on how to use remote debugging. | |
--> | |
<system.diagnostics> | |
<trace> | |
<listeners> | |
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> |
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> | |
<appSettings> | |
<add key="WSGI_ALT_VIRTUALENV_HANDLER" value="FlaskWebProject.app" /> | |
<add key="WSGI_ALT_VIRTUALENV_ACTIVATE_THIS" value="D:\home\site\wwwroot\env\Scripts\activate_this.py" /> | |
<add key="WSGI_HANDLER" value="ptvs_virtualenv_proxy.get_virtualenv_handler()" /> | |
<add key="PYTHONPATH" value="D:\home\site\wwwroot" /> | |
<add key="WSGI_LOG" value="D:\home\LogFiles\wfastcgi.log"/> | |
</appSettings> | |
<system.webServer> |
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
var http = require('http'); | |
var port = process.env.PORT || '3000'; | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(port); | |
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
import base64 | |
import hashlib | |
import hmac | |
import urllib | |
import urlparse | |
from datetime import date | |
import sys | |
if sys.version_info >= (3,): |
OlderNewer