Skip to content

Instantly share code, notes, and snippets.

View DmitriyZaitsev's full-sized avatar

Dmytro Zaitsev DmitriyZaitsev

  • Capgemini Engineering
  • Kyiv, UA
View GitHub Profile
git for-each-ref 'refs/heads/*' | \
while read rev type ref; do
branch=$(expr "$ref" : 'refs/heads/\(.*\)' )
revs=$(git rev-list $rev..master)
if [ -n "$revs" ]; then
echo $branch needs update
git diff --summary --shortstat -M -C -C $rev master
fi
done
import rx.Observable;
import rx.schedulers.Schedulers;
import java.util.List;
public class SwitchRxSchedulers {
public static void main(String[] args) throws InterruptedException {
final Object monitor = new Object();