In order of first appearance in The Morning Paper.
| #!/bin/bash | |
| # This simple script creates symlinks for network namespaces of docker containers, | |
| # then you can interact to that network namespace with built-in iproute2 on linux. | |
| # See iproute2 convention in: http://man7.org/linux/man-pages/man8/ip-netns.8.html | |
| container_ids=`docker ps -aq` | |
| for cid in $container_ids | |
| do |
| #!/bin/sh | |
| # | |
| # Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed) | |
| # | |
| # This script will: | |
| # * Download the latest live ISO image of SmartOS | |
| # * Create a VirtualBox VM, or update an existing VM with the latest ISO | |
| # * Configure the VM with a zones disk, and boot it! | |
| # | |
| # |
| import lombok.val; | |
| import org.junit.Assert; | |
| import org.junit.Test; | |
| import java.lang.invoke.*; | |
| /* | |
| Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should. | |
| Please don't actually do this... :P |
Fibers are an abstraction over sequential computation, similar to threads but at a higher level. There are two ways to think about this model: by example, and abstractly from first principles. We'll start with the example.
(credit here is very much due to Fabio Labella, who's incredible Scala World talk describes these ideas far better than I can)
Consider the following three functions
WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277
Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.