Skip to content

Instantly share code, notes, and snippets.

View jroneil's full-sized avatar

Joseph ONeil jroneil

  • Massachussetts
View GitHub Profile
@jroneil
jroneil / Web tools
Last active January 20, 2016 13:27
Web tools
Spring boot –Stand alone Web applications (good for micro services
http://projects.spring.io/spring-boot/
Grails groovy base Framework also good for micro services
https://grails.org/
Play Framework –light weight apps Java or Scala
https://www.playframework.com/
Nodejs
http://senecajs.org/
Yo start yomen
Grunt server //starts node js server
May need
https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx
need Visual studio 2015 or at least c++ build files
Run this for fire wall problems
git config --global url."https://".insteadOf git://
@jroneil
jroneil / Eclipse notes
Last active December 8, 2015 13:29
Eclipse notes
Good plug in for builder pattern
https://code.google.com/p/bpep/downloads/detail?name=bpep_1.0.0.SNAPSHOT.jar
https://code.google.com/p/fluent-builders-generator-eclipse-plugin/
@jroneil
jroneil / Monogdb notes
Last active November 30, 2015 17:27
Monogdb notes
start mongo
cd to mongo bin directory
mongod
in another cmd window mongo bin directory open mongo shell
mongo
inport a json file in mongo bin directory
mongoimport --db test --collection restaurants --drop --file c://Mongosets//primer-dataset.json
export to json file
mongoexport --db sales --collection contacts --dbpath /srv/MongoDB/
@jroneil
jroneil / Docker Gist
Last active May 16, 2020 19:32
docker commands
docker run -p 8080:80 tutum/hello-world //make port 80 exposed as 8080
docker ps -a //show all docker container
docker ps //show running containers
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0f8c2aebb98 tutum/hello-world "/bin/sh -c 'php-fpm " 7 minutes ago Up 7 minutes 0.0.0.0:8080->80/tcp tiny_ramanujan
35736a14df06 tutum/hello-world "/bin/sh -c 'php-fpm " 15 minutes ago Exited (0) 11 minutes ago sick_ride
docker rm e2d27016b5b5 // kills docker container with id e2d27016b5b5
docker run -d --name web1 -p 8081:80 tutum/hello-world run docker as daimom(in back ground) and give it a name web1
http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/
@jroneil
jroneil / install.bat
Created November 24, 2015 12:08
install oracle jar to maven
set PATH=%PATH%;C:\apache-maven-3.3.3\bin;
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_71
#mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
mvn install:install-file -Dfile=oracle.ucm.ridc-11.1.1.jar -DgroupId=com.oracle -DartifactId=umc -Dversion=11.1.1 -Dpackaging=jar
@jroneil
jroneil / Spring MVC POM.XML
Created November 24, 2015 12:04
Example of a spring MVC POM
project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>PROG</groupId>
<artifactId>PROG</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>IVOQ Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
@jroneil
jroneil / Maven Pom notes
Last active November 23, 2015 19:14
Maven XML formats
Jar properties
<properties>
<spring.version>4.1.7.RELEASE</spring.version>
<slf4j.version>1.7.5</slf4j.version>
<logback.version>1.0.13</logback.version>
<jackson-json.version>2.3.3</jackson-json.version>
<spring-data-jpa.version>1.4.1.RELEASE</spring-data-jpa.version>
</properties>
Show where to place war file This is in build tag
@jroneil
jroneil / pom.xml
Created November 23, 2015 19:05
Spring boot pom file with profiles
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>gov.dot.nhtsa.odi.fcamp</groupId>
<artifactId>QB-ONE</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>EWR QB</name>
<properties>
<java.version>1.8</java.version>