git init
git config user.email [email protected]
git add -A
git commit -a -m "first commit"
git remote add origin https://github.com/shaunthomas999/01_Java.git
git push -u origin master
- Execute in Terminal >
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
- To bring back the menu bar to the left side of the window >
gsettings set com.canonical.Unity.Launcher launcher-position Left
- Check this link
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
2017-11-28 17:06:03.412 INFO [something-xp-api,,,] 27445 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 9014 (http) | |
2017-11-28 17:06:03.413 INFO [something-xp-api,,,] 27445 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 9014 | |
2017-11-28 17:06:03.417 INFO [something-xp-api,,,] 27445 --- [ main] n.i.securities.something.somethingXpApi : Started somethingXpApi in 8.253 seconds (JVM running for 10.796) | |
2017-11-28 17:09:43.496 INFO [something-xp-api,,,] 27445 --- [nio-9014-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet' | |
2017-11-28 17:09:43.496 INFO [something-xp-api,,,] 27445 --- [nio-9014-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started | |
2017-11-28 17:09:43.536 INFO [something-xp-api,,,] 27445 --- [nio-9014-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': init |
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
2017-11-28 16:05:53.010 INFO [api-gateway,,,] 1 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090 (http) | |
2017-11-28 16:05:53.011 INFO [api-gateway,,,] 1 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8090 | |
2017-11-28 16:05:53.015 INFO [api-gateway,,,] 1 --- [ main] n.i.s.gateway.GatewayApplication : Started GatewayApplication in 154.872 seconds (JVM running for 155.846) | |
2017-11-28 16:09:42.305 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet' | |
2017-11-28 16:09:42.306 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started | |
2017-11-28 16:09:42.412 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 106 ms | |
2017-11-28 16:09 |
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
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
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
// int Array initialization | |
int[] intArray = {1,2,3}; | |
// String Array initialization | |
String[] stringArray = {"a","b","c"}; | |
// Load resources class | |
File file = new File(getClass().getClassLoader().getResource(jobFileName).getFile()); | |
// Best datatype for saving date & time - Java 8 |
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
/* | |
* Password Generator | |
* | |
* @author Shaun Thomas | |
* | |
* Objective | |
* -- | |
* \_ Generate 12 character length password from domain name | |
* \_ Re-creatable by hand without much complexity | |
* \_ Password has decent level of randomness |
NewerOlder