This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install homebrew cask and fonts | |
brew tap caskroom/cask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
SECRET_JSON_VARIABLE = 'GOOGLE_APPLICATION_CREDENTIALS'.freeze | |
raise 'please define an env variable GOOGLE_APPLICATION_CREDENTIALS pointing to your client_secrets.json' unless ENV[SECRET_JSON_VARIABLE] | |
raise 'please provide the spreadsheet id' if ARGV[0].nil? | |
require 'google/clients/spreadsheet_client' | |
require 'google/models/spreadsheet' | |
spreadsheet_id = ARGV[0] | |
spreadsheet = Google::Models::Spreadsheet.new(spreadsheet_id: spreadsheet_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage startvm "Ubuntu Server" --type headless | |
VBoxManage controlvm "Ubuntu Server" poweroff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rtr.godmother.api.models; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | |
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | |
import com.rtr.serializers.DateTimeJsonHelper; | |
import com.rtr.serializers.LocalDateJsonHelper; | |
import org.joda.time.DateTime; | |
import org.joda.time.LocalDate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jar { | |
manifest { | |
attributes 'Main-Class': 'org.itrion.MainClass' | |
} | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn dependency:purge-local-repository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm --create --ruby-version x.y.z@gemsetname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": | |
{ | |
"babel-core": "^6.2.1", | |
"babel-loader": "^6.2.0", | |
"babel-preset-es2015": "^6.1.18", | |
"css-loader": "^0.23.1", | |
"file-loader": "^0.8.5", | |
"url-loader": "^0.5.7", | |
"less-loader": "^2.2.2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --since=01/01/2015 --merges --format="%ad%n%t%n%B" --abbrev-commit --reverse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
println(helloTo("Johan")) | |
println(sumOf(1)) | |
println(sumOf(1, 2)) | |
println(sumOf(lhs = 1, rhs = 2)) | |
println(sumOf(1, 2, 3, 4, 5)) | |
val customer = Customer("Customer", "[email protected]") | |
// customer.name = "not allowed, name is val" | |
customer.email = "[email protected]" |
NewerOlder