Skip to content

Instantly share code, notes, and snippets.


My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
maxim / gh-dl-release
Last active Apr 30, 2021
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.
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
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)
michaelcurry /
Created Sep 29, 2016
RFC Template [Markdown]

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 /
Last active Apr 3, 2020
Shell script to create GitHub releases with automatically generated changelogs (using github-changelog-generator).
# ===> Set these variables first
# Example: "Jaskaranbir/MyRepo"
# An automatic changelog generator
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 {