Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="g_id_onload"
data-client_id="390285071447-nulpiuehvrjqg91cnah18sj52mlt9c2b.apps.googleusercontent.com"
data-callback="handleCredentialResponse">
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <Wire.h>
#include "SSD1306Wire.h"
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
unsigned long myTime;
@rodolfofadino
rodolfofadino / app_deploy.py
Created September 6, 2015 17:06
webserver in Python to run PowerShell scripts
from flask import Flask
from flask import request
import requests
import subprocess
import json
import time
payload_url = 'https://url-que-notificaremos-quando-o-deploy-terminar/'
app = Flask(__name__)
@rodolfofadino
rodolfofadino / gist:2691325
Created May 14, 2012 02:11
Script de Backup no S3
Add-Type -Path "C:\Program Files (x86)\AWS SDK for .NET\bin\AWSSDK.dll"
$secretKeyID="secret key"
$secretAccessKeyID="access key"
$bucket="BucketName"
$backup_directory="C:\teste"
$new_folder_format = Get-Date -uformat "Backup_%Y_%m_%d/"
foreach($file in Get-ChildItem -Path $backup_directory){
#include <Keyboard.h>
void setup() {
// Serial.begin(9600);
pinMode(2, INPUT);
pinMode(3, INPUT);
pinMode(4, INPUT);
pinMode(5, INPUT);
pinMode(6, INPUT);
pinMode(7, INPUT);
@rodolfofadino
rodolfofadino / DbConnectionHealthCheck.cs
Created January 6, 2019 19:43
DbConnectionHealthCheck.cs
using Microsoft.Extensions.Diagnostics.HealthChecks;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace WebApplication19.Checks
{
@rodolfofadino
rodolfofadino / GCInfoHealthCheck.cs
Last active January 6, 2019 18:58
GCInfoHealthCheck
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace WebApplication19.Checks

Aula 5

passo 1

   https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.403-windows-x64-installer

Bindler Minifier

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BundlerMinifier

Aula 1

Instalando o Package

Install-package Microsoft.ASPNETCore.All

ou

dotnet add package Microsoft.ASPNETCore.All

Aula 2

Middleware

if (env.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
}