Skip to content

Instantly share code, notes, and snippets.

View polothy's full-sized avatar

Mark Nielsen polothy

  • Anthology, Inc.
  • Seattle, WA
View GitHub Profile
@polothy
polothy / hoge.rb
Created September 14, 2021 04:14 — forked from ZPascal/hoge.rb
Using GitHubPrivateRepositoryReleaseDownloadStrategy removed in brew v2
require "formula"
require_relative "lib/private_strategy"
class Hoge < Formula
homepage "https://github.com/yourcompany/hoge"
url "https://github.com/yourcompany/hoge/releases/download/v0.1.0/hoge_v0.1.0_darwin_amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "6de411ff3e4b1658a413dd6181fcXXXXXXXXXXXXXXXXXXXX"
head "https://github.com/yourcompany/hoge.git"
version "0.1.0"
@polothy
polothy / handler.go
Created April 14, 2019 02:33
Testing gorilla/mux handlers
package main
import (
"net/http"
"github.com/gorilla/mux"
)
// Handler is responsible for defining a HTTP request route and corresponding handler.
type Handler struct {
@polothy
polothy / jxplat.sh
Last active June 15, 2020 15:09
Get various versions given a JX Platform version
#!/bin/bash
usage()
{
ME=`basename $BASH_SOURCE`
echo "Usage: ${ME} [options] [<platform-version>]
Requirements: jx, curl, yq, and awk.
Arguments: