Skip to content

Instantly share code, notes, and snippets.

View bfitzpat's full-sized avatar

Brian Fitzpatrick bfitzpat

  • Red Hat, Inc.
  • Colorado
View GitHub Profile
@bfitzpat
bfitzpat / gist:9360339fc2a1073371556093164b2025
Created January 11, 2019 16:10
Issues with Minishift startup
PS C:\WINDOWS\system32> minishift start
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... OK
-- Checking if Hyper-V driver is configured to use a Virtual Switch ...
'New Virtual Switch' ... OK
@bfitzpat
bfitzpat / gist:a6c812b79b7bcfdc15de225e92022061
Created January 11, 2019 16:25
minishift running out of memory
PS C:\WINDOWS\system32> minishift start --show-libmachine-logs -v 9
-- minishift version: v1.29.0+72fa7b2
-- Starting profile 'minishift'
Found binary path at C:\minishift\minishift.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:51323
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
PS C:\WINDOWS\system32> minishift start --memory 3GB --show-libmachine-logs -v 9
-- minishift version: v1.29.0+72fa7b2
-- Starting profile 'minishift'
Found binary path at C:\minishift\minishift.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:51424
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
PS C:\WINDOWS\system32> minishift start --memory 4GB --show-libmachine-logs -v 9
-- minishift version: v1.29.0+72fa7b2
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... OK
-- Checking if Hyper-V driver is configured to use a Virtual Switch ...
@bfitzpat
bfitzpat / gist:01178521246f612aeecce564a046012c
Created January 25, 2019 13:48
run camel generator test manually
brianf@brianf-work MINGW64 ~/Documents/GitHub/generator-camel-project-tests (master)
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building generator-camel-project-tests 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ generator-camel-project-tests ---
[INFO] Deleting C:\Users\brianf\Documents\GitHub\generator-camel-project-tests\target
brianf@brianf-work MINGW64 ~/Documents/GitHub/generator-camel-project-tests (fixing-windows-issue)
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building generator-camel-project-tests 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ generator-camel-project-tests ---
[INFO] Deleting C:\Users\brianf\Documents\GitHub\generator-camel-project-tests\target
_ _
/ \ _ __ __ _ ___ | |__ ___
/ _ \ | '_ \ / _` | / __| | '_ \ / _ \
/ ___ \ | |_) | | (_| | | (__ | | | | | __/
/_/ \_\ | .__/ \__,_| \___| |_| |_| \___|
|_|
____ _
/ ___| __ _ _ __ ___ ___ | |
| | / _` | | '_ ` _ \ / _ \ | |
| |___ | (_| | | | | | | | | __/ | |
$ yo camel-project
_ _
/ \ _ __ __ _ ___ | |__ ___
/ _ \ | '_ \ / _` | / __| | '_ \ / _ \
/ ___ \ | |_) | | (_| | | (__ | | | | | __/
/_/ \_\ | .__/ \__,_| \___| |_| |_| \___|
|_|
____ _
/ ___| __ _ _ __ ___ ___ | |
| | / _` | | '_ ` _ \ / _ \ | |
brianf@brianf-work MINGW64 ~/Documents/GitHub/vscode-yeoman (issue1-initial-tests)
$ vsce package
Executing prepublish script 'npm run vscode:prepublish'...
> yo@0.9.5 vscode:prepublish c:\Users\brianf\Documents\GitHub\vscode-yeoman
> npm run compile
> yo@0.9.5 compile c:\Users\brianf\Documents\GitHub\vscode-yeoman
> tsc -p ./
@bfitzpat
bfitzpat / extension.ts
Created February 13, 2019 21:07
Updated to make it work with the output channel - but it's not finding the jar
'use strict';
import * as child_process from 'child_process';
import * as fs from 'fs-extra';
import * as path from 'path';
import * as requirements from './requirements';
import * as vscode from 'vscode';
import * as fileUrl from 'file-url';
const options: vscode.OpenDialogOptions = {