Any markdown file found inside of the gist will be used as the body of a blog post.
There might be opportunities to do cool things with attached files, but let's just call that a stretch.
What's going on here?!
| #!/bin/bash | |
| PROJECT=${1:-"$(gcloud config get-value project)"} | |
| REGION=${2:-"us-central1"} | |
| IMAGE="hub.docker.com/_/nginx" | |
| { | |
| gcloud services enable "run.googleapis.com" --project="${PROJECT}" | |
| gcloud auth configure-docker --quiet |
| // tslint:disable-next-line:no-var-requires | |
| const edge = require("edge-js"); | |
| export interface Options { | |
| fileName: string; | |
| arguments?: string; | |
| } |
| #!/bin/bash | |
| NAME="some-convention-driven-name-usually-a-resource-group" | |
| APP="your-app-name-ideally-another-convention" | |
| DEPLOYMENT_PASSWORD=`az appservice web deployment list-site-credentials \ | |
| --resource-group ${NAME} \ | |
| --name ${APP} \ | |
| --query publishingPassword \ | |
| --output tsv` |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>GET</AllowedMethod> | |
| <MaxAgeSeconds>3000</MaxAgeSeconds> | |
| <AllowedHeader>*</AllowedHeader> | |
| </CORSRule> | |
| </CORSConfiguration> |
| namespace App { | |
| using Microsoft.AspNet.Identity.EntityFramework; | |
| using Microsoft.Data.Entity; | |
| public class ApplicationDbContext : IdentityDbContext { | |
| protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { |
| namespace Day3Part1 { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| public static class Extensions { |
| FROM microsoft/aspnet:1.0.0-beta8-coreclr | |
| COPY project.json /app/ | |
| WORKDIR /app | |
| RUN ["dnu", "restore"] | |
| COPY . /app | |
| EXPOSE 8080 | |
| ENTRYPOINT ["dnx", "-p", "project.json", "web"] |
| [ | |
| { | |
| "Id": "7b8796b753d4701fcc12657fcbafa467c4cca5d8a7b18163a52829157b91f44f", | |
| "Created": "2015-11-06T11:28:42.002941793Z", | |
| "Path": "/docker-entrypoint.sh", | |
| "Args": [ | |
| "elasticsearch" | |
| ], | |
| "State": { | |
| "Status": "created", |
| <?php | |
| use Illuminate\Routing\Controller; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| // | |
| use Illuminate\Http\Request; | |
| /** | |
| * | |
| * Keep in mind, this uses a lot of idiomatic PHP. Any variable can be used as a nullable type and null |