This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<p id="demo"></p> | |
<script> | |
var arbitrarilyNestedArray = [[1,2,[3]],4]; | |
var flatArray = []; |
This file contains 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
Simple steps to create a branch and merge the branch to master | |
--------------------------------------------------------------------------------------------------------------------- | |
| $ git checkout master | |
| $ git checkout -b jinnaBalu/Sample ////created branch with the name jinnaBalu/Sample | |
(Naming convension to follow but not mandatory jinnaBalu is github user name and Sample is branch name) | |
| $ git push --set-upstream origin jinnabalu/Sample ////To push the current branch and set the remote as upstream |
This file contains 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
Configuration file for cassandra | |
sudo nano /etc/cassandra/cassandra.yaml | |
Check Cassandra service or port running | |
sudo netstat -alnp | grep cassandra | |
Connect to perticular ip and port |
This file contains 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
Remove any files | |
sudo rm hummingbird-demo.war | |
Rename any files | |
sudo scp hummingbird-demo.war hummingbird.war | |
Copy from VM to VM | |
sudo scp saurabh@192.168.1.230:DelightWar/Dec2016/hummingbird-demo.war delight-war/112161349/ | |
This file contains 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-Jhipster Container | |
docker run --name wisestep-microservices -v /d/docker/docker-jhipster:/home/jhipster/app -v ~/.m2:/home/jhipster/.m2 -p 8060:8060 -p 8030:8030 -p 8069:8069 -p 8068:8 | |
068 -p 8067:8067 -p 8050:8050 -d -t jhipster/jhipster | |
Docker is application packaging technology | |
whole applications into a single image |
This file contains 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
Installation of Wesite in IIS | |
-> Goto IIS | |
Create WEBSITE | |
--> Expand the connections | |
--> right click on Sites | |
--> Create/ add website | |
--> Give a site name (same name for applicationpool-by default) | |
--> Phisical path of the application | |
--> Copy the physical path of the the product or the browse from the same screen | |
--> Select Binding Type as http/ https |
This file contains 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
Install command line browser : | |
sudo apt-get install w3m | |
To see the websites running | |
w3m <website> | |
ex: w3m example.com | |
ex: w3m localhost |
This file contains 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
Install Nginx : | |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo service nginx start | |
sudo service nginx restart | |
sudo service nginx status | |
sudo service nginx stop |
This file contains 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
Commands in ubuntu | |
cd to the last argument | |
| $ cd !$ | |
History of command can be run through | |
> !?serv calls the command with the same word matcing | |
This file contains 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
Preferences Key board shortcuts like in visual studio: | |
To add our own short cuts to the visual studio code : | |
Step1 : Preferences->Keyboard shortcuts | |
Step2 : Functionality : Format code of the file | |
{ "key": "ctrl+k ctrl+d", "command": "editor.action.format" } | |
Short Cuts: |
OlderNewer