Skip to content

Instantly share code, notes, and snippets.

@jockmac22
jockmac22 / Dockerfile.bad
Last active June 9, 2020 16:21
Docker SSH Agent not passing into my container -- DOCKER_BUILDKIT=1
# Bad Dockerfile that does not do what its told.
# syntax=docker/dockerfile:1.0.0-experimental
# Use the barebones version of Ruby 2.6.6
FROM ruby:2.6.6-stretch
RUN --mount=type=ssh ssh git@github.com
@jockmac22
jockmac22 / README.md
Last active May 31, 2020 03:42
Google Recaptcha v3 - Rails - Multiple Forms on one Page

INTRODUCTION

Parts of this code are based on the implementation described in this article:

Adding reCaptcha v3 to a Rails app without a gem

HOW IT WORKS

By default recaptcha will use the first grecaptch widget that it comes across, which makes having multiple forms on the page malfunction.

@jockmac22
jockmac22 / Intro.md
Last active March 23, 2018 17:22
Wowza Streaming Cloud API - GET a Transcoder's Details - Java

This code sample will request the details of a Transcoder through the Wowza Streaming Cloud API. The specific API documentation for this call can be found here:

https://sandbox.cloud.wowza.com/api/v1.1/docs#operation/showTranscoder

Most of the sample is structure for executing the API request, but you should focus on the getTranscoder(String id) and outputTranscoder(String list) to see how the request is formulated and how the response data is handled.

@jockmac22
jockmac22 / Intro.md
Last active March 23, 2018 17:21
Wowza Streaming Cloud API - GET List of Transcoders - Java

This code sample will request the details of a Transcoder through the Wowza Streaming Cloud API. The specific API documentation for this call can be found here:

https://sandbox.cloud.wowza.com/api/v1.1/docs#operation/listTranscoders

Most of the sample is structure for executing the API request, but you should focus on the getTranscodersList(String id) and outputTranscodersList(String list) to see how the request is formulated and how the response data is handled.

@jockmac22
jockmac22 / example.rb
Last active February 2, 2017 19:10
JSON Template Management Class
# Example Usage:
require 'lib/json/templates
Json::Templates.instance.get("live_streams/POST_livestream")