Skip to content

Instantly share code, notes, and snippets.

View dseerapu's full-sized avatar

Dhamra Sai Seerapu dseerapu

View GitHub Profile
@iiitmahesh
iiitmahesh / bash config osx
Created September 13, 2017 15:30
bash config osx
#DYNOMO DB
function dynamo(){
cd ~/Documents/Softwares/dynamodb_local
java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
}
# git tab completion (homebrew)
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
. `brew --prefix`/etc/bash_completion.d/git-completion.bash
fi
@dseerapu
dseerapu / gist:b768728b3b4ccf282c7806a3745d0347
Last active October 25, 2022 15:04
Android app inactivity timeout | Android Logout timer
public class LogOutTimerUtil {
public interface LogOutListener {
void doLogout();
}
static Timer longTimer;
static final int LOGOUT_TIME = 600000; // delay in milliseconds i.e. 5 min = 300000 ms or use timeout argument
public static synchronized void startLogoutTimer(final Context context, final LogOutListener logOutListener) {