{"id":133,"date":"2016-01-23T23:26:29","date_gmt":"2016-01-23T23:26:29","guid":{"rendered":"http:\/\/kaizen-koka.com\/?p=133"},"modified":"2017-08-08T02:56:58","modified_gmt":"2017-08-08T02:56:58","slug":"tips-tricks","status":"publish","type":"post","link":"https:\/\/kaizen-koka.com\/?p=133","title":{"rendered":"Tips &#038; Tricks"},"content":{"rendered":"<p>\n\t<span style=\"font-family:verdana,geneva,sans-serif;\"><strong>1. How to create .m2 folder in windows?<\/strong><br \/>\n\t&nbsp; &nbsp; You can do this through command prompt. Go to the directory you want to add .m2 folder in command prompt and execute<br \/>\n\t&nbsp;&nbsp;&nbsp;<span style=\"font-size:16px;\">&nbsp;<\/span><\/span><span style=\"font-family:comic sans ms,cursive;\"><span style=\"font-size:16px;\">mkdir .m2<\/span><\/span><br \/>\n\t<span style=\"font-family:verdana,geneva,sans-serif;\"><strong>2. How to create .gitignore file in windows?<\/strong><br \/>\n\t&nbsp; &nbsp; You can do this with command prompt. Go to the directory you want to add .gitignore file, create a text file with gitignore.txt and add the data and then jump to command prompt and execute<br \/>\n\t&nbsp;&nbsp; <span style=\"font-size:16px;\">&nbsp;<\/span><\/span><span style=\"font-family:comic sans ms,cursive;\"><span style=\"font-size:16px;\">ren gitignore.txt .gitignore<\/span><\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\"><span style=\"font-family:verdana,geneva,sans-serif;\"><strong>3.&nbsp;How to compile a java file in package ?<\/strong><\/span><\/span><br \/>\n\t<span style=\"font-family:comic sans ms,cursive;\"><span style=\"font-size:16px;\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;C:\\Info\\batch3\\day2&gt;javac -d bin com\/info\/PackageProgram.java<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;C:\\Info\\batch3\\day2&gt;java -cp .\/bin com\/info\/PackageProgram<\/span><\/span>\n<\/p>\n<p>\n\t<span style=\"font-family:comic sans ms,cursive;\"><span style=\"font-size:16px;\">4<\/span><\/span><strong><span style=\"font-size:14px;\"><span style=\"font-family:verdana,geneva,sans-serif;\">. Command to know which one application is running on a particular port.<\/span><\/span><\/strong>\n<\/p>\n<p>\n\t<span style=\"font-family:comic sans ms,cursive;\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"font-size:16px;\"> netstat -ano -p tcp &nbsp;or netstat -ano find &quot;0.0.0.0&quot;<\/span><\/span>\n<\/p>\n<p>\n\t<span style=\"font-family:comic sans ms,cursive;\"><span style=\"font-size:16px;\">5.&nbsp;<\/span><\/span><strong><span style=\"font-size:14px;\"><span style=\"font-family:verdana,geneva,sans-serif;\">Command to know which one application is running on a particular port on Unix Server<\/span><\/span><\/strong>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\"><span style=\"font-family:tahoma,geneva,sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp;netstat -tulpn | grep 13000<\/span><\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\"><span style=\"font-family:tahoma,geneva,sans-serif;\">ON Mac &nbsp;&nbsp;<\/span><\/span>lsof -n -i4TCP:8080 | grep LISTEN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. How to create .m2 folder in windows? &nbsp; &nbsp; You can do this through command prompt. Go to the directory you want to add .m2 folder in command prompt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p70lnf-29","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133"}],"version-history":[{"count":5,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions\/471"}],"wp:attachment":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}