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
| ➜ ~ sudo lsof -i :8001 | |
| ➜ ~ sudo kill -9 83413 |
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
| docker image prune --all |
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
| docker build -t nx-cloud-server . | |
| build with the version: | |
| docker build -t nx-cloud-server:0.1 . |
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
| # Add packages to .net app | |
| dotnet add package prometheus-net # install prometheus nuget pckg | |
| dotnet add package prometheus-net.AspNetCore | |
| kubectl create -f prometheus-config.yaml | |
| kubectl create -f prometheus-pushgateway-map.yaml |
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
| helm install my-prometheus stable/prometheus | |
| --set server.service.type=LoadBalancer --set rbac.create=false | |
| helm install my-prometheus stable/prometheus | |
| --set server.service.type=LoadBalancer --set rbac.create=false | |
| -f prometheus.values.yaml | |
| # add graphana |
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
| # build from dockerfile | |
| docker build -t app-name . | |
| # create custom registry | |
| docker create -p 5000:5000 --restart always --name registry registry:2 | |
| # start custom registry | |
| docker start registry | |
| # add tag |
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
| docker run -d -p 27017:27017 -v ~/data:/data/db mongo |
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
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { AngularFireModule } from 'angularfire2'; | |
| import { AngularFireAuthModule } from 'angularfire2/auth'; | |
| import { AppRoutingModule } from './app-routing.module'; | |
| import { AppComponent } from './app.component'; | |
| import { CoreModule } from './core/core.module'; | |
| import { SharedModule } from './shared/shared.module'; | |
| import { HomeComponent } from './components/home/home.component'; |
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
| const routes: Routes = [ | |
| { | |
| path: '', | |
| component: HomeComponent, | |
| pathMatch: 'full' | |
| }, | |
| { | |
| path: 'passwords', | |
| loadChildren: () => import('./passwords/passwords.module').then(m => m.PasswordsModule), | |
| canLoad: [AuthGuard], |
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
| import { NgModule } from '@angular/core'; | |
| import { Routes, RouterModule } from '@angular/router'; | |
| const routes: Routes = [ | |
| { | |
| path: 'passwords', | |
| loadChildren: () => import('./passwords/passwords.module').then(m => m.PasswordsModule) // adds lazy module to routing | |
| } | |
| ]; |