Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jinna Balu JinnaBalu

🏠
Working from home
View GitHub Profile
@JinnaBalu
JinnaBalu / ArbitrarilyNestedArraysToFlatArray.html
Created Dec 2, 2016
Converting the ArbitrarilyNestedArrays into FlatArray
View ArbitrarilyNestedArraysToFlatArray.html
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
var arbitrarilyNestedArray = [[1,2,[3]],4];
var flatArray = [];
View MostFrequentlyUsedGitCommands.txt
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
View UsefullCommandsForCassandra.txt
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
View UsefulCommandsForJetty.txt
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/
View DockerUsefullCommands.txt
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
View IISSetupApp.txt
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
View InstallCommandLineBrowserInLinux.txt
Install command line browser :
sudo apt-get install w3m
To see the websites running
w3m <website>
ex: w3m example.com
ex: w3m localhost
View InstallNginx.txt
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
View UbuntuCommands.txt
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
View VisualStudioCodeShortcuts.txt
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:
You can’t perform that action at this time.