Skip to content

Instantly share code, notes, and snippets.

View manuartero's full-sized avatar
🧩

Manuel Artero Anguita manuartero

🧩
View GitHub Profile
@manuartero
manuartero / functional-interfaces.md
Created August 11, 2017 12:24
Java 8 Functional Interfaces
Java Human
Consumer<T> (t) -> void
BiConsumer<T,U> (t, u) -> void
Supplier<R> () -> r
Function<T,R> (t) -> r
BiFunction<T,U,R> (t, u) -> r
Predicate<T> (t) -> boolean
BiPredicate<T,U> (t, u) -> boolean
@manuartero
manuartero / log.sh
Created December 14, 2015 16:34
log path_to_log_file
#!/bin/bash
# $1 path_to_log_file
if [ -z "$1" ] ; then
echo "log {path_to_log_file}"
exit 1
fi
tail -f -n 10000 $1 | awk '
/DEBUG/ {print "\033[36m" $0 "\033[39m"}