https://github.com/lesterchan/telegram-bot
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
mkdir C:\temp | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.microsoft.com/download/F/4/2/F42AB12D-C935-4E65-9D98-4E56F9ACBC8E/wpilauncher.exe', 'C:\\temp\\wpilauncher.exe')" | |
C:\temp\wpilauncher.exe | |
cd "C:\Program Files\microsoft\Web Platform Installer" | |
WebPICMD.exe /Install /Products:"ApplicationInsightsStatusMonitor" /AcceptEULA |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
To back up your database, you call the rds_backup_database stored procedure.
Note You can't back up a database during the maintenance window, or any time Amazon RDS is in the process of taking a snapshot of the database. The following parameters are required:
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 System; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Web.Http.Filters; | |
using System.Web.Http.OData; | |
using static System.Activator; | |
using static System.Net.HttpStatusCode; | |
namespace Conecta2.Web.Infraestrutura.Filter | |
{ |
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
{ | |
"paths": { | |
"github:*": "../wwwroot/jspm_packages/github/*", | |
"npm:*": "../wwwroot/jspm_packages/npm/*" | |
}, | |
"packages": { | |
"../wwwroot/src": { | |
"defaultExtension": "ts", | |
"meta": { |
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
mkdir c:\cfn | |
mkdir c:\cfn\log | |
mkdir "c:\Program Files\Amazon\ElasticBeanstalk\Tools" | |
:loop | |
powershell.exe -Command "(New-Object System.Net.WebClient).DownloadFile('https://s3.amazonaws.com/elasticbeanstalk-env-resources-us-east-1/stalks/eb_iis_v1_4.0.4.23.1/lib/Bootstrap.ps1', 'c:\Program Files\Amazon\ElasticBeanstalk\Tools\Bootstrap.ps1')" | |
if %errorlevel% neq 0 goto loop | |
powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Amazon\ElasticBeanstalk\Tools\Bootstrap.ps1" us-east-1 cloudformati url | |
set /p HANDLE=<c:\cfn\wait-condition-handle.txt | |
c:\"Program Files"\Amazon\cfn-bootstrap\cfn-signal -e 0 "%HANDLE%" > c:\cfn\log\cfn-signal-call-log 2>&1 |
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 validaCnpj(cnpj) { | |
var multiplicadores = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; | |
return isValidCP(cnpj, multiplicadores, 14); | |
} | |
function validaCpf(cpf) { | |
var multiplicadores = [11, 10, 9, 8, 7, 6, 5, 4, 3, 2]; | |
return isValidCP(cpf, multiplicadores, 11); | |
} |
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 System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Data.Entity.Validation; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using NSubstitute; | |
using Xunit; |