I hereby claim:
- I am sandroacoelho on github.
- I am sandroacoelho (https://keybase.io/sandroacoelho) on keybase.
| Docker | |
| =========================== | |
| docker system prune -af | |
| Kubernetes | |
| =========================== |
| Simple Java Mail is a mailing library with a super clean API. It's the easiest to use (Java) mailing library in the world. | |
| This library relieves you of having to deal with low level API such as MimeMessage, fuzzy try catch constructions, inner classes and other nonsense. You just want to send an email! | |
| But don't let looks deceive you, this library does everything: it is a robust, feature complete mailing library, yet it is small and lightweight (the core library clocking in at only 134kb). | |
I hereby claim:
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| FROM java:8 | |
| RUN apt-get update && \ | |
| apt-get -y install maven git sudo && \ | |
| mkdir -p /home/developer && \ | |
| mkdir -p /etc/sudoers.d && \ | |
| adduser --quiet --disabled-password --shell /bin/bash --home /home/developer --gecos "User" developer && \ | |
| export uid=1000 gid=1000 && \ | |
| echo "developer:developer" | chpasswd && \ | |
| echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \ |
| #!/bin/bash | |
| if [ $# -ne 1 ] ; then | |
| echo "Usage $0 [directory]" | |
| exit 1 | |
| fi | |
| find $1 -name '*.md5' -delete | |
| find $1 -type f -print0 | while IFS= read -r -d $'\0' file; do | |
| ( |
| How to reset jobs in Jenkins | |
| item = Jenkins.instance.getItemByFullName("your-job-name-here") | |
| //THIS WILL REMOVE ALL BUILD HISTORY | |
| item.builds.each() { build -> | |
| build.delete() | |
| } | |
| item.updateNextBuildNumber(1) |
| import org.nlp2rdf.NIF; | |
| import org.nlp2rdf.bean.NIFBean; | |
| import org.nlp2rdf.bean.NIFType; | |
| import org.nlp2rdf.nif21.impl.NIF21; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class NIF { |