Skip to content

Instantly share code, notes, and snippets.

View heartace's full-sized avatar
💊

Derek heartace

💊
View GitHub Profile
@heartace
heartace / remove_ms_office365_license
Created May 17, 2014 17:22
Remove and Re-add License Key for Office 2013 on Office 365
#open cmd as administrator
#If you installed the 64-bit version of Office 2013, move to the following folder: C:\Program Files\Microsoft Office\Office15
#If you installed the 32-bit version of Office 2013, move to the following folder: C:\Program Files (x86)\Microsoft Office\Office15
#type this command to find the product key
cscript ospp.vbs /dstatus
#type this command to remove license
cscript ospp.vbs /unpkey:<last five characters of product key>
@heartace
heartace / Maven_install_3rd_party_JARs
Last active December 25, 2015 15:59
how to install 3rd party JARs with Maven
original url:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
Guide to installing 3rd party JARs
Although rarely, but sometimes you will have 3rd party JARs that you need to put in your local repository for use in your builds, since they don't exist in any public repository like Maven Central. The JARs must be placed in the local repository in the correct place in order for it to be correctly picked up by Apache Maven. To make this easier, and less error prone, we have provide a goal in the maven-install-plugin which should make this relatively painless. To install a JAR in the local repository use the following command:
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
If there's a pom-file as well, you can install it with the following command: