Skip to content

Instantly share code, notes, and snippets.

Simon Massey simbo1905

View GitHub Profile
@maxim
maxim / gh-dl-release
Last active Aug 5, 2020
Download assets from private Github releases
View gh-dl-release
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
View openshift-cheatsheet.md

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa
@michaelcurry
michaelcurry / rfc-template.md
Created Sep 29, 2016
RFC Template [Markdown]
View rfc-template.md

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

@Jaskaranbir
Jaskaranbir / github_release_script.sh
Last active Apr 3, 2020
Shell script to create GitHub releases with automatically generated changelogs (using github-changelog-generator).
View github_release_script.sh
#!/bin/bash
# ===> Set these variables first
branch="$GIT_BRANCH"
# Example: "Jaskaranbir/MyRepo"
repo_slug="$TRAVIS_REPO_SLUG"
token="$GITHUB_TOKEN"
version="$TRAVIS_TAG"
# An automatic changelog generator
@Mortimerp9
Mortimerp9 / readerwithtooling.scala
Created Apr 14, 2013
An implementation of the Reader Monad in scala, with correct type variance and some implicit utils to simplify the daily use of Readers, In particular with Future.
View readerwithtooling.scala
/**
* A monad to abstract dependencies in the code, see https://coderwall.com/p/kh_z5g
*/
object Reader {
/**
* an implicit to convert a function A => B in a Reader[A, B]
*/
implicit def reader[C, R](block: C => R): Reader[C, R] = Reader(block)
@masahitojp
masahitojp / Args4j.scala
Created Aug 17, 2012
args4J をScalaから使う
View Args4j.scala
package com.github.masahitojp
import org.kohsuke.args4j.CmdLineException
import org.kohsuke.args4j.CmdLineParser
import org.kohsuke.args4j.Option
import grizzled.slf4j.Logger
import scala.collection.JavaConversions._
import scala.util.control.Exception._
object Args4j {
You can’t perform that action at this time.