Skip to content

Instantly share code, notes, and snippets.

Simon Massey simbo1905

Block or report user

Report or block simbo1905

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 {
@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)
@Jaskaranbir
Jaskaranbir / github_release_script.sh
Last active Jun 26, 2019
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
@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)

@maxim
maxim / gh-dl-release
Last active Oct 3, 2019
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
#
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active Oct 14, 2019
My Openshift Cheatsheet
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
You can’t perform that action at this time.