Skip to content

Instantly share code, notes, and snippets.

View mefellows's full-sized avatar

Matt Fellows mefellows

View GitHub Profile
@mefellows
mefellows / travis-ci-bintray-credentials.sh
Created August 6, 2014 13:31
Scala - Travis CI Bintray Credentials Script
#!/bin/bash
mkdir ~/.bintray/
FILE=$HOME/.bintray/.credentials
cat <<EOF >$FILE
realm = Bintray API Realm
host = api.bintray.com
user = $BINTRAY_USER
password = $BINTRAY_API_KEY
EOF
echo $BINTRAY_USER
@mefellows
mefellows / scala-travis-ci-binttray-build.sbt
Created August 6, 2014 13:32
Scala - Travis CI Bintray Sample build.sbt
import bintray.AttrMap
import bintray._
name := "sbt-dotenv"
description := "An SBT Plugin to load environment variables from .env into the JVM System Environment for local development. Assists with 'Twelve Factor App' development principle 3 'Store config in the environment'."
organization := "au.com.onegeek"
scalaVersion := "2.10.4"
@mefellows
mefellows / scala-travis-ci-bintray-yml
Created August 6, 2014 13:34
Scala - Travis CI Publish Bintray YAML Sample
language: scala
scala:
- 2.10.3
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
env:
global:
- secure: glhEB9krKsLbmcoQ5l6uDPGX+WWYThNwK24eUFkqutnum2avk98Z3e5sXtldDR386E1GSaDZYzWE8rv0AF9Xdqz4MvnZ/ZK11DtUfvWt9Vrd/NhsV081Mks3iJsyq9rqxk0byazUCuosuCnRTr4jzSE5LrGp2w7Fe1C/yKETYTc=
@mefellows
mefellows / scala-travis-ci-central-build.sbt
Last active August 29, 2015 14:04
Scala - Travis CI Central Sample build.sbt
import respite.Dependencies
import com.typesafe.sbt.SbtGit._
name := "respite-core"
version := "0.0.1-SNAPSHOT"
instrumentSettings
ScoverageKeys.minimumCoverage := 95
@mefellows
mefellows / deis-issue-1551-deis-builder
Created September 11, 2014 23:42
Deis Issue #1551 - Journal CTL output for deis-builder
core@deis-1 ~ $ journalctl --no-pager -u deis-builder
-- Logs begin at Wed 2014-09-10 22:43:15 UTC, end at Wed 2014-09-10 23:27:23 UTC. --
Sep 10 23:17:04 deis-1 systemd[1]: Starting deis-builder...
Sep 10 23:17:04 deis-1 sh[25133]: Pulling repository deis/builder
Sep 10 23:18:32 deis-1 sh[25133]: 2014/09/10 23:18:32 Error pulling image (latest) from deis/builder, unexpected EOF
Sep 10 23:18:32 deis-1 systemd[1]: deis-builder.service: control process exited, code=exited status=1
Sep 10 23:18:32 deis-1 systemd[1]: Failed to start deis-builder.
Sep 10 23:18:32 deis-1 systemd[1]: Unit deis-builder.service entered failed state.
@mefellows
mefellows / deis-1856-transcript
Created October 3, 2014 09:15
Deis - 1856 transcript
[email protected] ~/development/public/deis $ vagrant up
Bringing machine 'deis-1' up with 'virtualbox' provider...
Bringing machine 'deis-2' up with 'virtualbox' provider...
Bringing machine 'deis-3' up with 'virtualbox' provider...
==> deis-1: Box 'coreos-452.0.0' could not be found. Attempting to find and install...
deis-1: Box Provider: virtualbox
deis-1: Box Version: >= 0
==> deis-1: Adding box 'coreos-452.0.0' (v0) for provider: virtualbox
deis-1: Downloading: http://storage.core-os.net/coreos/amd64-usr/452.0.0/coreos_production_vagrant.box
==> deis-1: Successfully added box 'coreos-452.0.0' (v0) for 'virtualbox'!
@mefellows
mefellows / gist:9a67b17a571fcffa1bd0
Created October 8, 2014 03:32
Powershell $PROFILE
#$Shell.WindowTitle="WinOps Matt"
set-executionpolicy unrestricted
new-item alias:subl -value 'C:\Program Files\Sublime Text 3\sublime_text.exe'
new-item alias:ll -value 'ls'
@mefellows
mefellows / boxstarter.ps1
Last active August 29, 2015 14:07
Matt's BoxStarter
Update-ExecutionPolicy Unrestricted
Set-TaskbarSmall
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst sublimetext2
cinst SqlServer2012Express
cinst VisualStudio2013Ultimate
cinst fiddler4
cinst mssqlserver2012express
@mefellows
mefellows / ec2-user-data.ps1
Last active May 28, 2021 11:44
Packer Community Plugins - Example Windows 2012 Setup
<powershell>
write-output "Running User Data Script"
write-host "(host) Running User Data Script"
cmd.exe /c net user /add vagrant FooBar@123
cmd.exe /c net localgroup administrators vagrant /add
Set-ExecutionPolicy -ExecutionPolicy bypass -Force
# RDP
@mefellows
mefellows / Vagrantfile
Created December 7, 2014 21:24
Example Vagrant Windows SMB Setup
VAGRANTFILE_API_VERSION = "2"
require 'io/console'
# Capture login details if starting up vagrant or provisioning it
# Required for AD operations.
#
# Environment variables prevent explicit user input. Useful for CI.
username = ENV["VAGRANT_USER"] || nil
password = ENV["VAGRANT_PASSWORD"] || nil