- Install WSL / Ubuntu
- Install Docker for Windows
- Allow non-TLS
- Configure docker client
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
// WARNING: This function is called every time the Octant worker loop runs (so every 1-sec) | |
// You will want/need to implement your own PF manager that you setup in main() | |
// You will also want to implement your own throttled worker loop to update the data from the remote service. | |
func handlePrint(request *service.PrintRequest) (plugin.PrintResponse, error) { | |
if request.Object == nil { | |
return plugin.PrintResponse{}, errors.Errorf("object is nil") | |
} | |
client := request.DashboardClient | |
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
diff --git a/internal/api/terminal_manager.go b/internal/api/terminal_manager.go | |
index 0799e02..4f0d196 100644 | |
--- a/internal/api/terminal_manager.go | |
+++ b/internal/api/terminal_manager.go | |
@@ -9,11 +9,12 @@ import ( | |
"context" | |
"fmt" | |
"sync" | |
+ "time" | |
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
/* | |
Copyright (c) 2019 the Octant contributors. All Rights Reserved. | |
SPDX-License-Identifier: Apache-2.0 | |
*/ | |
// go run build.go build | |
// go run build.go go-install | |
package main |
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
diff --git a/web/web.go b/web/web.go | |
index 2819367b..0998d7fc 100644 | |
--- a/web/web.go | |
+++ b/web/web.go | |
@@ -1,9 +1,10 @@ | |
package web | |
import ( | |
+ "mime" | |
"net/http" |
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
package main | |
import ( | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", "127.0.0.1:7777") | |
if err != nil { | |
panic(err) |
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
package main | |
import ( | |
"fmt" | |
// "reflect" | |
"github.com/google/go-cmp/cmp" | |
) | |
type Foo struct { | |
A *int |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kube-registry-v0 | |
namespace: kube-system | |
labels: | |
k8s-app: kube-registry | |
version: v0 | |
spec: | |
replicas: 1 |
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
package main | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"os" | |
"regexp" | |
"strings" |
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 shutil | |
BASE='/ufrc/camctrp/working/gullettj' | |
PART1 = open('/ufrc/camctrp/working/gullettj/nepal/nepal_tracula_list.txt', 'r').readlines() | |
PART2 = open('/ufrc/camctrp/working/gullettj/nepal/nepal_dwi_list.txt', 'r').readlines() | |
MOVES = [ | |
['{base}/nepal/{part1}/dwi/{part2}_dwi_merged.nii.gz', '{base}/nepal/{part1}/dwi/{part1}_ses-01_bvec_merged'], | |
['{base}/nepal/{part1}/dwi/{part2}_bvec_merged', '{base}/nepal/{part1}/dwi/{part1}_ses-01_bvec_merged'], |