$ git remote add -t master -m master dashboard https://github.com/Book-My-Forex/dashboard.git
Saturday, 29 January 2022
In Git add short name for repo locally in order to check out
Friday, 30 July 2021
Showing latest changes in Angular without clearing browser history (untested)
In index.html do -
<meta http-equiv="Cache-control" content="no-cache">
On apache server in /var/www/.htaccess do -
RewriteEngine On
<FilesMatch "\.(html|htm|js|css)$">
FileETag None
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT"
</IfModule>
</FilesMatch>
Thursday, 1 July 2021
In Postgres generate SQL script of table schema
pg_dump -h <ip>-U <user> --table <table> <database name> > <file name>.sql
Tuesday, 29 June 2021
Configuring Spring Boot project for deployment
1) In Properties > Project Facets, select Dynamic Web Module, Java and Javascript.
2) In Web Project Settings add the required context root.
3) In Deployment Assembly add the maven dependencies (WEB-INF/lib)
Tuesday, 22 June 2021
Increasing cores per socket on vmWare vSphere to utilize MS license
Whenever cores per socket are increased, for eg. to utilize 16 cores instead of 4 sockets/vCPUs with 1 core per socket. for SQL Server 2019, the vNUMA topology has to match the physical server NUMA topology for optimal performance.
Saturday, 19 June 2021
Create new index in elastic 6 with typed fields in order to sum them
PUT HTTP method with
{
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"doc" : {
"properties" : {
"field":{"type":"long"},
....
...
Wednesday, 3 March 2021
Alternative way to checkout committed files .git file
git fetch .
git checkout .
This is when git restore does not work.
Subscribe to:
Posts (Atom)