issue: minishift/minishift#1391
create a virtual switch with name miniNAT, then enable internet sharing for miniNAT in wireless adapter settings.
$env:HYPERV_VIRTUAL_SWITCH="miniNAT" # or something else
$env:MINISHIFT_ENABLE_EXPERIMENTAL="y"issue: minishift/minishift#1391
create a virtual switch with name miniNAT, then enable internet sharing for miniNAT in wireless adapter settings.
$env:HYPERV_VIRTUAL_SWITCH="miniNAT" # or something else
$env:MINISHIFT_ENABLE_EXPERIMENTAL="y"Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Require scoop to be installed. Then put these in your $profile, you will get different nodejs for different powershell session.
function Set-LocationWithNodeVersion ($dir){
Set-Location $dir
if (Test-Path '.\package.json') {
$json = Get-Content '.\package.json' | ConvertFrom-Json
$version = $json.engines.node| $path = $env:PATH | |
| $excludes = @('C:\Program Files\nodejs\', 'C:\Program Files\Git\cmd', 'C:\Program Files (x86)\Yarn\bin') | |
| $path = ($path.Split(';') | Where-Object { | |
| -not $excludes.contains($_) | |
| }) -join ';' | |
| $env:PATH = "C:\Program Files (x86)\Microsoft VS Code\bin;$path" |
| func createRevID(generation int, parentRevID string, body Body) string { | |
| // This should produce the same results as TouchDB. | |
| digester := md5.New() | |
| digester.Write([]byte{byte(len(parentRevID))}) | |
| digester.Write([]byte(parentRevID)) | |
| digester.Write(canonicalEncoding(stripSpecialProperties(body))) | |
| return fmt.Sprintf("%d-%x", generation, digester.Sum(nil)) | |
| } |
| /// <summary> | |
| /// Interface definition of Either | |
| /// </summary> | |
| /// <typeparam name="Tl">type of the Left value</typeparam> | |
| /// <typeparam name="Tr">type of the Right value</typeparam> | |
| public interface IEither<out Tl, out Tr> | |
| { | |
| /// <summary> | |
| /// Check the type of the value held and invoke the matching handler function | |
| /// </summary> |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Reflection.Emit; | |
| using System.ComponentModel; | |
| using System.Threading; | |
| namespace testdynamic | |
| { | |
| /// <summary> |
| Array.join($('a[data-href^="ed2k"]').map(function(){return $(this).attr('data-href')}), '\n'); |
| require 'formula' | |
| class Solfege < Formula | |
| homepage 'http://www.solfege.org/' | |
| url 'http://ftpmirror.gnu.org/solfege/solfege-3.22.2.tar.xz' | |
| mirror 'http://ftp.gnu.org/gnu/solfege/solfege-3.22.2.tar.xz' | |
| sha1 '060cf7975e17f3d696acd1dfc8676703be7c7ffa' | |
| depends_on "pkg-config" => :build | |
| depends_on "gettext" => :build |