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 |
| /*** | |
| 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. |
| launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
| sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
| sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
| sudo pkgutil --forget org.macosforge.xquartz.pkg | |
| # Log out and log in |
| #!/bin/sh | |
| # to run this, use the following: | |
| # curl https://matthewbauer.us/kernel-panic.sh | sh | |
| cfile=$(mktemp).c | |
| cat <<EOF >> $cfile | |
| #include <unistd.h> | |
| #include <sys/syscall.h> | |
| #include <signal.h> |
| ############## | |
| # pretty prompt and font colors | |
| ############## | |
| # alter the default colors to make them a bit prettier | |
| echo -en "\e]P0000000" #black | |
| echo -en "\e]P1D75F5F" #darkred | |
| echo -en "\e]P287AF5F" #darkgreen | |
| echo -en "\e]P3D7AF87" #brown | |
| echo -en "\e]P48787AF" #darkblue |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.http.conn.ssl.NoopHostnameVerifier; | |
| import org.apache.http.impl.client.CloseableHttpClient; | |
| import org.apache.http.impl.client.HttpClients; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; | |
| import org.springframework.http.converter.ByteArrayHttpMessageConverter; | |
| import org.springframework.web.client.RestTemplate; |
| # put into ~/.bashrc, or whereever fit | |
| export LESS_TERMCAP_md=$'\e[1;36m' | |
| export LESS_TERMCAP_me=$'\e[0m' | |
| export LESS_TERMCAP_se=$'\e[0m' | |
| export LESS_TERMCAP_so=$'\e[1;41m' | |
| export LESS_TERMCAP_ue=$'\e[0m' | |
| export LESS_TERMCAP_us=$'\e[1;32m' | |