This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am unrealnerd on github. | |
* I am xarjunshetty (https://keybase.io/xarjunshetty) on keybase. | |
* I have a public key ASAO1OM9Gi7NzSoafwbZWVrSxyTQ-5qXqvqimuEWjmMYCAo | |
To claim this, I am signing this object: |
- go Commands
- running a go
go run main.go
- adding package
go get -u -v github.com/packagename
- running a go
- go doesn take responsibility of implicitly converting types and get blamed on loss of data :)
- multiple args
func sum(nums ...int) {
userange
to retreive the args inside the func - go needs no vm like java and .net and is procedural and statically typed unlike oop
- wire needs this line
//+build wireinject
with new line post this other wise the file gets inlcuded and complains redeclared block - wire.exe path should be included in the env path variable
- to package the library
dotnet pack .
- pack with nuspec number
dotnet pack featureprovider.core.csproj -p:NuspecFile=.nuspec
- push the package to local repo
dotnet nuget push .\bin\Debug\FeatureProvider.1.0.0.nupkg -s C:\localnugetpackages\
- clean the nuget cache
dotnet nuget locals --clear all
- adding he package to project
dotnet add package featureprovider -s c:\localnugetpackages
or if already addeddotnet restore
- pushing the package to nuget.org
dotnet nuget push bin/Debug/FeatureProvider.1.0.0.nupkg -k -s https://api.nuget.org/v3/index.json
- Since tensorflow is not supported with python 3.7 downgrade to conda python=3.6
- running rasa nlu
python -m rasa_nlu.train -c nlu_config.yml --data data/phrases.md -o models --project phrases --verbose
- running the api server for trained nlu models
python -m rasa_nlu.server --path models/
curl -XPOST http://localhost:5000/parse -d '{"q":"tell me a phrase","project":"phrases"}'
- To start mongodb create a folder and then use the following command
mongod --dbpath <path to data folder>
- To import data from a json file
.\mongoimport.exe --db phrasesdb --collection phrases --file C:\code\roulette\data\phrases.json --jsonArray
- show all databases
show dbs
- current database
db
- create database
use <dbname>
- create colletion
db.createCollection()
- Set up an external network switch Steps
-
Creating a docker machine
docker-machine create -d hyperv --hyperv-virtual-switch "Primary Virtual Switch" default
-
When we get errror "Verify that the Virtual Machine Management service on the computer is running" run this comand
MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
-
List docker machines
This file contains hidden or 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
version: '3' | |
services: | |
heartbeatwebapp: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
image: heartbeatapp | |
container_name: heartbeatwebapp | |
environment: | |
- ASPNETCORE_ENVIRONMENT=Development |
NewerOlder