https://medium.com/google-cloud/kubernetes-101-pods-nodes-containers-and-clusters-c1509e409e16 https://medium.com/google-cloud/kubernetes-110-your-first-deployment-bf123c1d3f8 https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a
This file contains 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
public class PhoneNumber { | |
private final String areaCode; | |
private final String phoneNumber; | |
private PhoneNumber(String areaCode, String phoneNumber) { | |
this.areaCode = areaCode; | |
this.phoneNumber = phoneNumber; | |
} | |
public static PhoneNumber create(String areaCode, String phoneNumber) { |
This file contains 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
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
import com.fasterxml.jackson.databind.node.ArrayNode; | |
import org.apache.kafka.common.errors.SerializationException; | |
import org.apache.kafka.common.serialization.Serializer; | |
import org.apache.kafka.connect.data.Timestamp; | |
import java.lang.reflect.Field; |
grit.commit(g -> g .message("") .author() );
# kill all processes listening on port 2181
lsof -i :2181 | tail -n+2 | awk '{ print $2 }' | xargs kill -9
Add the following shell function to your .bashrc
.
mr() {
local url=$(git remote get-url origin)
# on OSes other than Mac OS X replace `open -a "Google Chrome` with your browsers executable, e.g. google-chrome on Ubuntu
open -a "Google Chrome" "${url%.git}/merge_requests/new?merge_request[source_branch]=$(git symbolic-ref -q --short HEAD)"
}
This file contains 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
gradle() { | |
[[ -f gradlew ]] && ./gradlew "$@" || command gradle "$@" | |
} |