Skip to content

Instantly share code, notes, and snippets.

View makelefy's full-sized avatar

Makele G. makelefy

View GitHub Profile
public class SpringRestTemplateBasicAuthExample {
public static void main(String... args){
RestTemplate rt = new RestTemplate();
rt.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
rt.getMessageConverters().add(new StringHttpMessageConverter());
String uri = new String("https://some.api.provider.com/rest/authenticate");
String plainCreds = "user@awesome.com:sfdfsdf$%&^$%4";

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@makelefy
makelefy / GroovyExcelParser.groovy
Created January 30, 2017 20:12 — forked from jkeam/GroovyExcelParser.groovy
A groovy script to parse an excel document.
import org.apache.poi.ss.usermodel.*
import org.apache.poi.hssf.usermodel.*
import org.apache.poi.xssf.usermodel.*
import org.apache.poi.ss.util.*
import org.apache.poi.ss.usermodel.*
import java.io.*
class GroovyExcelParser {
//http://poi.apache.org/spreadsheet/quick-guide.html#Iterator
# Remove all cached files to ensure there are no .gitignore files being tracked
git rm --cached -r .
# Track the files that should be tracked
git add .
#fork
@makelefy
makelefy / stopWords.txt
Last active December 15, 2021 12:58
Alphabetisch sortierte Liste deutscher Füllwörter, zur Verwendung z. B. als Ausschlussliste in Data Mining
aber
abermals
abgerufen
abgerufene
abgerufener
abgerufenes
ähnlich
alle
allein
allem