Skip to content

Instantly share code, notes, and snippets.

@troyharvey
troyharvey / deployment.yml
Last active May 9, 2024 10:55
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 25, 2024 01:17
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Step by step to install Scala + Play Framework in Ubuntu 14.04 with Activator.

Install Scala

sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
sudo apt-get install scala
@ajcrites
ajcrites / README.md
Last active June 10, 2019 17:38
Minimal AngularJS + AMD (require.js) loading plus `r.js` optimization.

Simple AngularJS + require.js "optimizable" project

NOTE: gists do not allow directories, so / cannot be included in filenames. Instead, - is used in this project. That is to say public-index.html should actually be read as public/index.html relative to the root of the project.

This is a very stripped down seed project for AngularJS-based code that is loaded via the require.js AMD and optimized via r.js

Inspired by:

@marcospereira
marcospereira / Unique.java
Created November 3, 2011 09:22
Unique validation for Play!Framework
package utils.validation;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import net.sf.oval.configuration.annotation.Constraint;
@Retention(RetentionPolicy.RUNTIME)