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 | |
if [ "$#" -ne 13 ]; then | |
printf "Usage: ${0} [csv output file] [client] [client configuration directory] [data directory] [download|upload] [threads] [chunk size] [packet loss] [http|https] [proxy] [storage URL] [storage access key] [storage region]\n" | |
exit 0 | |
fi | |
flightgw_bin=/usr/local/bin/flight-gateway | |
net_dev=eth0 |
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
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
using MultiStorageProvider.Common.Helpers; | |
using MultiStorageProvider.Common.Service.Interface; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; |
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
$rsgName = "xxxxx" | |
$appName = "xxxxx" | |
$slotName = "xxxxxx" | |
$destination = Get-AzureRmWebApp -ResourceGroupName $rsgName -Name $appName | |
$destinationAppSettings = $destination.SiteConfig.AppSettings | |
$destinationConnectionStrings = $destination.SiteConfig.ConnectionStrings | |
$source = Get-AzureRmWebAppSlot -ResourceGroupName $rsgName -Name $appName -Slot $slotName | |
$sourceAppSettings = $source.SiteConfig.AppSettings |
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
function stripMeta(doc) { | |
var metaProps = ["_rid", "_ts", "_self", "_etag", "_attachments"]; | |
var newDoc = {}; | |
for(var prop in doc) { | |
if (metaProps.indexOf(prop) == -1) { | |
newDoc[prop] = doc[prop]; | |
} | |
} | |
return newDoc; |
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
<# | |
.Synopsis | |
Short description | |
.DESCRIPTION | |
Long description | |
.EXAMPLE | |
Example of how to use this cmdlet | |
.EXAMPLE | |
Another example of how to use this cmdlet | |
#> |
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
namespace Naos.Foundation.Infrastructure | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
using System.Net; | |
using System.Threading.Tasks; | |
using EnsureThat; | |
using Humanizer; | |
using Microsoft.Azure.Cosmos; |
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 os | |
from datetime import * | |
class FilesFilter(): | |
""" | |
filter to get file list in a folder, which file modification time between[start_date,end_date] | |
""" | |
@staticmethod | |
def get_files_list(path_to_folder,start_date=None,end_date=None): | |
file_list = [] |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"appServiceName": { | |
"type": "string", | |
"minLength": 1 | |
}, | |
"appServiceSkuName": { | |
"type": "string", |
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
General | |
https://blog.codepen.io/radio/ | |
http://softwareengineeringdaily.com/ | |
http://spec.fm/ | |
https://syntax.fm/ | |
http://www.codingblocks.net/ | |
http://devhell.info/ | |
http://www.fullstackradio.com/ | |
https://www.functionalgeekery.com/ | |
http://reactive.audio/ |
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 config = new ConfigurationBuilder().SetBasePath(context.FunctionAppDirectory) | |
.AddJsonFile("local.settings.json", optional: true, reloadOnChange: true) | |
.AddEnvironmentVariables() | |
.Build(); | |
//1) initialize the cosmosdb client | |
using (DocumentClient client = new DocumentClient(new Uri(config["CosmosDB_Uri"]), config["CosmosDB_appKey"])) |