Skip to content

Instantly share code, notes, and snippets.

View stephanfeb's full-sized avatar

Stephan February stephanfeb

View GitHub Profile

Keybase proof

I hereby claim:

  • I am stephanfeb on github.
  • I am beardpappa (https://keybase.io/beardpappa) on keybase.
  • I have a public key ASBrYHOEmtrzPT_TID8lbg05u_IaSA3BaIaSS_SN7V3Mzwo

To claim this, I am signing this object:

#!/bin/bash -xev
#always update the default env settings
mv chef-prod-env.json /etc/chef/
if [ ! -f /etc/chef/client.rb ]
then
## only bootstrap the client if not already done
mv chef-first-boot.json /etc/chef/
{
"run_list": [ "recipe[nginx-prod]", "recipe[nginx-prod::config-update]" ]
}
{
"run_list" :[
"role[base]"
]
}
@stephanfeb
stephanfeb / default-chef-env.json
Last active September 10, 2017 10:54
Default Chef Environment to provision new client
{
"run_list": [ "recipe[nginx-acc]", "recipe[nginx-acc::config-update]" ]
}
#!/bin/bash -xev
#always update the default env settings
mv default-chef-env.json /etc/chef/
if [ ! -f /etc/chef/client.rb ]
then
## only bootstrap the client if not already done
mv chef-first-boot.json /etc/chef/
@stephanfeb
stephanfeb / circle.yml
Created May 1, 2016 01:40
Basic circleci config for deploying a grails3 application
machine:
java:
version: oraclejdk8
dependencies:
pre:
- curl -v -L -o cf-cli_amd64.deb 'https://cli.run.pivotal.io/stable?release=debian64&source=github'
- sudo dpkg -i cf-cli_amd64.deb
- cf -v
@stephanfeb
stephanfeb / shippable.yml
Created November 16, 2015 04:44
My shippable.yml file for doing auto-deploy of Scala SBT app to Elastic Beanstalk
language: scala
scala:
- 2.11.7
jdk:
- oraclejdk8
env:
global:
- AWSAccessKeyId=XXXXXHIDDENXXXXX
- secure: XXXXXHIDDDENXXXXX
@stephanfeb
stephanfeb / SlickTest.scala
Created October 16, 2015 22:59
Fully synchronous version of SlickTest.scala - AntiPattern. Don't do this.
/*
*
*
* The MIT License (MIT)
*
* Copyright (c) 2015 , Stephan M. February
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights