Note: this assumes Colima v0.4.0 or newer.
SSH into the VM colima ssh
Edit docker init script sudo vi /etc/init.d/docker.
Note: this assumes Colima v0.4.0 or newer.
SSH into the VM colima ssh
Edit docker init script sudo vi /etc/init.d/docker.
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD | 
As workaround to disable kubernetes without the UI, you can edit
"~/Library/Group Containers/group.com.docker/settings.json"
and set the kubernetesEnabled property to false, then quit and relaunch the Docker.
Source: docker/for-mac#2541 (comment)
| #!/bin/sh | |
| export CATALINA_HOME="$(brew --prefix tomcat)/libexec" | |
| export CATALINA_BASE="${CATALINA_BASE:-$(brew --prefix)/var/tomcat}" | |
| catalina_init() { | |
| if [ ! -e "$CATALINA_BASE/conf" ]; then | |
| mkdir -p "$CATALINA_BASE" | |
| cp -r "$CATALINA_HOME/conf" "$CATALINA_BASE/" | |
| fi | 
| # In the docker image amazoncorretto:11, with `yum install jsvc` we get jsvc 1.0.3 | |
| # But jsvc 1.0.3 does NOT support Java 9+ | |
| # Fortunately there's a workaround | |
| sudo ln -s /usr/lib/jvm/java/lib/ /usr/lib/jvm/java/lib/amd64 | 
The default ephemeral port range on macOS/OSX is 49152-65535, which is only 16,383 ports:
$ sysctl -a | grep portrange
net.inet.ip.portrange.lowfirst: 1023
net.inet.ip.portrange.lowlast: 600
net.inet.ip.portrange.first: 49152
net.inet.ip.portrange.last: 65535
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535
| /*** | |
| Inspired by http://choly.ca/post/typescript-json/ , except this is only for parsing (not stringifying). | |
| If you use this, I'd appreciate some credit and some feedback ... but neither are required. | |
| Copyright license (Apache) is at the bottom. | |
| NOTE THIS WILL PROBABLY NOT WORK if your uglifier changes constructor/class names. This is a pretty common thing, and it makes me sad. | |
| The main problem this solves is that JSON.stringify returns plain old JS objects, not TS instances. | 
| #Sat Jun 22 04:07:24 CST 2019 | |
| #based on http://www.eclipsecolorthemes.org/?view=theme&id=44675, with brighter comment | |
| \!/= | |
| /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles.version=16 | |
| /instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.keyword.enabled=true | |
| /instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.link.enabled=true | |
| /instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.tag.enabled=true | |
| /instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionForeground.SystemDefault=false | |
| /instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionBackground.SystemDefault=false | |
| /instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Background.SystemDefault=false | 
| # show, list or set java version for current shell | |
| # usage: jv; jv -l; or jv 8 | |
| jv() { | |
| local d v="$1" | |
| if [ $# -ge 1 ]; then | |
| [ -z "${v#-[lLV]}" ] && { /usr/libexec/java_home -V; return; } | |
| [ -z "${v##-*}" ] && { /usr/libexec/java_home "$@"; return; } | |
| [ ${#v} -eq 1 -a -z "${v#[0-8]}" ] && v="1.$v" | |
| [ -n "$v" ] && d=$(/usr/libexec/java_home -v "$v") && \ | |
| export JAVA_HOME="$d" |