Skip to content

Instantly share code, notes, and snippets.

@foolhorse
foolhorse / gradle-bintray-push.gradle
Last active December 1, 2018 11:19
maven install and push to bintray
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
group = PROJECT_PACKAGE_NAME
version = PROJECT_VERSION_NAME
install {
repositories.mavenInstaller {
pom.groupId = PROJECT_PACKAGE_NAME
pom.artifactId = PROJECT_NAME
@foolhorse
foolhorse / .gitignore
Last active July 13, 2020 04:35
Android application gitignore
# Latest version:
# https://gist.github.com/foolhorse/e7c51d1c33f09e5d82cd7f86f13d515d
# Mac system files
.DS_Store
# Linux system files
.directory
# svn files
@foolhorse
foolhorse / check_image_type.py
Created September 18, 2016 06:53
check image file type in current dir
#!/usr/bin/env python2
#-*-encoding:utf-8-*-
import os,sys
import imghdr
list = os.listdir('.')
for file in list:
filepath = os.path.join('.',file)
if os.path.isdir(filepath):
@foolhorse
foolhorse / adbwifi.sh
Created October 9, 2015 10:20 — forked from stormzhang/adbwifi.sh
shell script for adb wifi
#!/bin/bash
#Modify this with your IP range
MY_IP_RANGE="192\.168\.1"
#You usually wouldn't have to modify this
PORT_BASE=5555
#List the devices on the screen for your viewing pleasure
adb devices