Skip to content

Instantly share code, notes, and snippets.

View ggordonutech's full-sized avatar

ggordonutech

View GitHub Profile
@ggordonutech
ggordonutech / application.properties
Created October 31, 2019 02:23
Default Springboot MVC application properties with Mysql/Sqlite Support
# RUN THE SERVER ON PORT 8090
server.port = 8090
# DataSource settings: set here your own configurations for the database
# connection. In this example we have "fruitdb" as database name and
# "root" as username and password.
# ---- USE LINE BELOW FOR MYSQL
spring.datasource.url = jdbc:mysql://localhost:3306/fruitdb?useSSL=false&createDatabaseIfNotExist=true
spring.datasource.username = root
@ggordonutech
ggordonutech / .gitlab-ci.yml
Created October 25, 2019 05:12
Maven Java gitlab CI Explanation
# Utilize the docker container image tagged as "maven:latest"
# see - https://hub.docker.com/_/maven
# What is a container - https://www.docker.com/resources/what-container
image: maven:latest
# We now specify the differnt stages of our CI build. We have 3 stages
stages:
- build
- test
- package
@ggordonutech
ggordonutech / fruits.json
Created September 19, 2019 13:27
Just a simple json file about fruits
[
{
"id": 1,
"name": "Banana",
"description": "A banana is an edible fruit – botanically a berry – produced by several kinds of large herbaceous flowering plants in the genus Musa. In some countries, bananas used for cooking may be called plantains, distinguishing them from dessert banana",
"photoUrl":"http://www.pngall.com/wp-content/uploads/2016/04/Banana-PNG.png"
},
{
"id": 2,
"name": "Apple",
@ggordonutech
ggordonutech / install_node_js_unattended.sh
Created September 5, 2019 17:34
Install Node Js Unattended
#!/usr/bin/env bash
# Upgrade Nodejs from version 8 to version 10
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs yarn
@ggordonutech
ggordonutech / homework.md
Last active September 18, 2019 16:48
Data Structures Week 2 HW

Data Structures Week 2 Homework

Real Estate Association of Jamaica has asked you to develop an app to store details of their featured housing. Your app should collect the details of three (3) houses from the user and save these details to a file.

--------------------------
@ggordonutech
ggordonutech / .gitignore
Created August 29, 2019 06:09
Java, Eclipse and Maven gitignore combined
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
@ggordonutech
ggordonutech / pom.partial.xml
Last active September 8, 2019 03:02
Maven package as jar pom config
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>