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
<?php namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |
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
name: 'Submodules Sync' | |
on: | |
# Allows you to run this workflow manually from the Actions tab or through HTTP API | |
workflow_dispatch: | |
jobs: | |
sync: | |
name: 'Submodules Sync' | |
runs-on: ubuntu-latest |
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
#!/usr/bin/env bash | |
set -e | |
# The file must be publically accessible: | |
# - Go to "Share" in the "More actions" dropdown | |
# - In the "Get Link" section, select "Change to anyone with this link" | |
# - You should see a link above the text: | |
# > Anyone with the link | |
# > Anyone on the internet with this link can view | |
# - Copy the url to your clipboard and set the value of $fileurl |
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
FROM scratch AS tin | |
RUN pour in the ingredients | |
FROM box AS premade | |
LABEL read=instructions | |
FROM oven | |
COPY --from=tin /tin/ /bottomshelf | |
COPY --from=box /box /bottomself/tin/ |
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
package enum_example | |
import ( | |
"bytes" | |
"encoding/json" | |
) | |
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred | |
type TaskState int |
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
#showtooltip | |
/cast [noworn:Fishing Pole] !Attack | |
/stopmacro [noworn:Fishing Pole] | |
/console Sound_EnableAllSound 0 | |
/use !item:6533 | |
/use 16 | |
/use Fishing | |
/console Sound_EnableAllSound 1 |
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
version: '3.7' | |
services: | |
traefik: | |
ports: | |
- "80:80" | |
- "443:443" | |
- "8080:8080" |
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
#!/bin/bash | |
set -e | |
# This script fetches swarm join tokens from a remote server, via SSH | |
# https://www.terraform.io/docs/providers/external/data_source.html#processing-json-in-shell-scripts | |
# Parse existing /dev/stdin as JSON and into shell variables. | |
[ ! -t 0 ] && eval "$(jq -r '@sh "SSH_HOST=\(.host) SSH_USER=\(.user) IDENTITY_FILE=\(.identity)"')" | |
SSH_HOST=${SSH_HOST:-""} |
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
variable: | |
domain: "YOUR DOMAIN, e.g. docker.com" | |
subdomain: "A SUBDOMAIN, e.g. cluster" | |
region: "THE AWS REGION TO DEPLOY, e.g. us-east-1" | |
email: "[email protected]" | |
ucp_password: | |
type: prompt | |
provider: | |
acme: |
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
terraform { | |
required_version = ">= 0.12" | |
} | |
# | |
# @HOWTO: reference another state files output | |
# | |
# data "terraform_remote_state" "current" { | |
# backend = "remote" | |
# |