git rebase -i 0abc12def // <- the commit before the one that needs edit
// use vi to change "pick" to "edit" on the commit(s) that need edits, then write/quit
git commit --amend --author="Christopher Snay <[email protected]>"
// write/quit vi
git rebase --continue // <- repeat until all edited commits complete
git push -f
Scaffold a MySql database from .NET Core
PM> Scaffold-DbContext "server=IP.ADD.RE.SS;user=dbuser;password=dbpass;database=dbname" MySql.Data.EntityFrameworkCore -o dbname -f
Requirement:
Microsoft.EntityFrameworkCore.Tools
Different providers:
MySql.Data.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer
Install Logstash plugins
logstasn\bin\logstash-plugin install json-filter
Start Elasticsearch, Kibana, and Logstash
elasticsearch\version\bin\elasticsearch.exe
kibana\bin\kibana.bat
logstash\bin\logstash -f ..\config\logstashconfig.conf -r
Delete data from Elasticsearch
// deletes all data
curl -XDELETE localhost:9200/*
// deletes index
curl -XDELETE localhost:9200/indexname
Angular setup
// create new app
ng new <PROJECT_NAME>
cd <PROJECT_NAME>
// install angular material
npm i @angular/material @angular/animations @angular/cdk hammerjs
// generate components
ng g c <COMPONENT_NAME>
// generate services
ng g s <SERVICE_NAME>