Skip to content

Instantly share code, notes, and snippets.

View marc0der's full-sized avatar

Marco Vermeulen marc0der

View GitHub Profile
@marc0der
marc0der / gist:6194433
Last active December 20, 2015 20:59
Install springboot with GVM
$ gvm flush candidates
#open a new terminal now
$ gvm install springboot
$ spring --version
#have fun
@marc0der
marc0der / gist:6015948
Last active May 24, 2022 10:06
Higher order function in bash!
#!/bin/bash
function printit {
echo "This is from an embedded function: $1"
}
function printthat {
echo "This is the first line."
$1 $2
echo "This is the third line."
@marc0der
marc0der / gist:5929475
Created July 4, 2013 18:18
GVM Selfupdate
gvm selfupdate && source ~/.gvm/bin/gvm-init.sh
@marc0der
marc0der / gist:5918820
Created July 3, 2013 14:53
Switch to GVM Prod
export GVM_SERVICE="http://dev.gvmtool.net" && gvm selfupdate
@marc0der
marc0der / gist:5684862
Created May 31, 2013 13:07
Install Groovy with GVM
gvm install groovy
@marc0der
marc0der / gist:5683846
Created May 31, 2013 09:22
Switch to GVM DEV
export GVM_SERVICE="http://dev.gvmtool.net" && gvm selfupdate
@marc0der
marc0der / gist:5683790
Created May 31, 2013 09:11
Switch to GVM Beta
export GVM_SERVICE="http://beta.gvmtool.net" && gvm selfupdate
@marc0der
marc0der / deploy-gvm.sh
Created December 3, 2012 14:22
Deploy GVM
#!/bin/bash
ENV="$1"
TAG="$2"
if [[ -z "$ENV" || -z "$TAG" ]]; then
echo "Usage: deploy-gvm <env> <tag>"
exit 0
fi
@marc0der
marc0der / gist:4131836
Created November 22, 2012 15:55
Switches gvm to use the correct version of grails for the current project.
alias switch='cat application.properties | grep app.grails.version | sed "s_app.grails.version=__g" | xargs gvm use grails'
@marc0der
marc0der / gist:4095013
Created November 17, 2012 11:13
Add environments to Gradle build
def loadConfiguration() {
def environment = hasProperty('env') ? env : 'dev'
ext.environment = environment
println "Environment is set to: $environment"
def configFile = file('config.groovy')
def config = new ConfigSlurper(environment).parse(configFile.toURL())
ext.config = config
}