Skip to content

Instantly share code, notes, and snippets.

View EarlOfEgo's full-sized avatar
🦧

Stephan Hagios EarlOfEgo

🦧
View GitHub Profile

Keybase proof

I hereby claim:

  • I am earlofego on github.
  • I am sthagios (https://keybase.io/sthagios) on keybase.
  • I have a public key ASA3A010pX2eZKtV29Cbk_R4MGweWafv6Ju58XvTcrreCgo

To claim this, I am signing this object:

ffmpeg -i input.mov output.gif
@EarlOfEgo
EarlOfEgo / Rx2SchedulersOverrideRule.kt
Created January 31, 2017 08:49
A test rule for unit test to override all schedulers with trampoline
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.plugins.RxJavaPlugins
import io.reactivex.schedulers.Schedulers
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
/**
* Test rule that overrides all schedulers with the trampoline scheduler.
* This means everything runs on the same thread, when using this rule
package net.gini;
import rx.Observable;
import rx.functions.Action0;
import rx.functions.Action1;
import rx.functions.Func1;
import java.util.*;
/**
git branch --merged develop | grep -v master | grep -v develop | grep -v "\*" | xargs -n 1 git branch -d
private int fold(List<Integer> input) {
if (input.size() == 0) {
return 0;
}
final int first = input.get(0);
if (input.size() == 1) {
return first;
}
\documentclass[11pt,a4paper]{report}
\usepackage{graphicx}
\usepackage{a4}
\usepackage[english, ngerman]{babel}
%That Headings have Kapitälchen:
\usepackage[T1]{fontenc}
\usepackage{xcolor}
@EarlOfEgo
EarlOfEgo / config
Last active August 29, 2015 13:56
my config file for the i3wm.
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@EarlOfEgo
EarlOfEgo / build-libxm.sh
Last active November 2, 2021 10:13
Shell script to build libxml2 for Android with the NDK. The NDK is stored in /home/USER/Tools/android-ndk-r9/ this has to be adjusted.
export CROSS_COMPILE="arm-linux-androideabi"
export CC="${CROSS_COMPILE}-gcc"
export CXX="${CROSS_COMPILE}-g++"
export NDK="${HOME}/Tools/android-ndk-r9"
export SYSROOT="$NDK/platforms/android-14/arch-arm"
export PATH="$PATH:$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin"
export CPPFLAGS="--sysroot=${SYSROOT}"
export CFLAGS="--sysroot=${SYSROOT} -I."
@EarlOfEgo
EarlOfEgo / .conkyrc
Last active December 18, 2015 11:09
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager