| API | Status Codes |
|---|---|
| [Twitter][tw] | 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504 |
| [Stripe][stripe] | 200, 400, 401, 402, 404, 429, 500, 502, 503, 504 |
| [Github][gh] | 200, 400, 422, 301, 302, 304, 307, 401, 403 |
| [Pagerduty][pd] | 200, 201, 204, 400, 401, 403, 404, 408, 500 |
| [NewRelic Plugins][nr] | 200, 400, 403, 404, 405, 413, 500, 502, 503, 503 |
| [Etsy][etsy] | 200, 201, 400, 403, 404, 500, 503 |
| [Dropbox][db] | 200, 400, 401, 403, 404, 405, 429, 503, 507 |
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
| $apiKey = "Your API Key" | |
| $OctopusURL = "Your Octopus URL" | |
| $Header = @{ "X-Octopus-ApiKey" = $apiKey } | |
| $ProjectName = "Your project name" | |
| $EnvironmentName = "Your environment name" | |
| #Getting Environment and Project By Name | |
| $Project = Invoke-WebRequest -Uri "$OctopusURL/api/projects/$ProjectName" -Headers $Header| ConvertFrom-Json |
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
| ## -------------------------------------------------------------------------------------- | |
| ## | |
| ## This script is used to control how we deploy packages to Windows Azure. | |
| ## Orignial script (https://gist.github.com/PaulStovell/5234255) customized for | |
| ## Staging-To-Production with VIP swap deployment. | |
| ## | |
| ## NOTE: the script will only do Staging+VIP swap if $OctopusAzureSlot == "Staging". | |
| ## If $OctopusAzureSlot == anything else, the script will deploy directly to that slot | |
| ## without any further swapping. | |
| ## |
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
| angular.module('utilsModule').filter("megaNumber", () => { | |
| return (number, fractionSize) => { | |
| if(number === null) return null; | |
| if(number === 0) return "0"; | |
| if(!fractionSize || fractionSize < 0) | |
| fractionSize = 1; | |
| var abs = Math.abs(number); |
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] | |
| $sourceConnectionString = $(throw "-sourceConnectionString is required."), | |
| [string] | |
| $sourceTableName = $(throw "-sourceConnectionString is required."), | |
| [string] | |
| $targetConnectionString = $(throw "-targetConnectionString is required."), | |
| [string] | |
| $targetTableName = $(throw "-targetTableName is required.") | |
| ) |
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
| using System; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Blob; | |
| /// <summary> | |
| /// Moves blobs from one container to another | |
| /// Install-Package WindowsAzure.Storage | |
| /// </summary> | |
| namespace MoveBlobs | |
| { | |
| class Program |
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 logClass(target: any) { | |
| // save a reference to the original constructor | |
| var original = target; | |
| // a utility function to generate instances of a class | |
| function construct(constructor, args) { | |
| var c : any = function () { | |
| return constructor.apply(this, args); | |
| } |
This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
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
| ... | |
| ... | |
| providers: [ | |
| { provide: Http, useClass: ExtendedHttpService } | |
| ] | |
| ... | |
| ... |
- Make sure the domain you picked points at the IP of your Redash server.
- Switch to the
rootuser (sudo su). - Create a folder named
nginxin/opt/redash. - Create in the nginx folder two additional folders:
certsandcerts-data. - Create the file
/opt/redash/nginx/nginx.confand place the following in it: (replaceexample.redashapp.comwith your domain name)upstream redash { server redash:5000; }