Skip to content

Instantly share code, notes, and snippets.

View ErShakirAnsari's full-sized avatar
🏠
Working from home

Shakir Ansari ErShakirAnsari

🏠
Working from home
View GitHub Profile
@ErShakirAnsari
ErShakirAnsari / BasicAuthenticationFilter.java
Created December 8, 2018 06:39 — forked from neolitec/BasicAuthenticationFilter.java
HTTP Basic authentication Java filter
package com.neolitec.examples;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
package jgitdemo;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.PushCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.InvalidRemoteException;
@ErShakirAnsari
ErShakirAnsari / .gitignore
Created August 24, 2020 06:19
git ignore for android project
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
@ErShakirAnsari
ErShakirAnsari / SVNKit.java
Last active January 29, 2021 12:22
Tutorial for svn kit
package svnkit;
import java.io.File;
import java.util.Collection;
import java.util.Iterator;
import org.tmatesoft.svn.core.SVNCommitInfo;
import org.tmatesoft.svn.core.SVNDepth;
import org.tmatesoft.svn.core.SVNDirEntry;
import org.tmatesoft.svn.core.SVNException;
@ErShakirAnsari
ErShakirAnsari / .gitignore
Last active October 24, 2022 09:39
Common gitignore file
### Android ###
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Android Studio generated files and folders
captures/