Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \
name: Modal Form Example | |
type: module | |
description: 'Modal Form Example module' | |
package: Example | |
version: VERSION | |
core: 8.x |
module Main exposing (..) | |
import Html exposing (Html, div, p, text) | |
-- Data type for the flags | |
type alias Flags = | |
{ user : String | |
, token : String | |
} | |
FROM php:7.1-apache | |
ADD . /var/www | |
ADD ./site.conf /etc/apache2/sites-enabled/000-default.conf | |
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client && \ | |
docker-php-ext-install mcrypt pdo_mysql opcache && \ | |
pecl install redis-3.1.2 && docker-php-ext-enable redis && \ | |
a2enmod rewrite |
<?php | |
/** | |
* Catch php output buffering data over jQuery AJAX | |
* | |
* @author: Sohel Rana ([email protected]) | |
* @author url: https://blog.sohelrana.me | |
* @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/ | |
* @licence MIT | |
*/ |
FROM ruby:2.4-alpine | |
RUN gem install ultrahook | |
ENTRYPOINT ["ultrahook"] |
#!/usr/bin/env python3 | |
from __future__ import print_function | |
try: | |
from ruamel import yaml | |
except ImportError: | |
import yaml | |
# Map a Docker Compose "service" name to its image. |
FROM golang:alpine | |
RUN apk update && apk upgrade && \ | |
apk add --no-cache git zip | |
ARG TERRAFORM_VERSION | |
RUN git clone --single-branch --branch v${TERRAFORM_VERSION} https://github.com/hashicorp/terraform.git /go/src/github.com/hashicorp/terraform | |
RUN cd $GOPATH/src/github.com/hashicorp/terraform && echo $GOPATH && go install ./tools/terraform-bundle |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
# Mike Bianco <[email protected]> | |
# Description: Example of using Stripe's subscription billing to add usage based billing | |
# information to the customer's recurring invoice | |
require 'stripe' | |
require 'sinatra' | |
Stripe.api_key = ENV['STRIPE_KEY'] | |
# This example uses sinatra to listen for webhooks. You can easily use rails, or any other framework/language. |