Skip to content

Instantly share code, notes, and snippets.

View bonnyfone's full-sized avatar

Stefano Bonetta bonnyfone

View GitHub Profile
@bonnyfone
bonnyfone / README.md
Created January 23, 2024 15:51 — forked from gaberilde/README.md
Firebase Hosting Fetch All Files Url fix

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/gaberilde/4c2d55d8c6de0772ca49c8b473dff442 <site_name>
@bonnyfone
bonnyfone / build.gradle
Created July 29, 2016 14:09 — forked from danielgomezrico/build.gradle
Gradle / Android tasks to run findbugs and pmd static code checkers after assembleDebug. thanks to https://gist.github.com/rciovati/8461832
// How to use it inside any gradle build
apply from: "quality.gradle"
@bonnyfone
bonnyfone / gen_resconfig.sh
Last active January 8, 2018 10:13
Simple bash script which automatically generates locales resConfigs snippet from your project's res/ directory
#!/bin/bash
GREEN='\033[0;32m'
NC='\033[0m'
printf "Generating resConfig from resource dir: $1\n"
resconfig="resConfigs"
for values in `ls $1 | grep values-`; do
log="Inspecting $values"
if [ -f "$1/$values/strings.xml" ]
then
suffix=`echo $values | sed 's/values-//g'`
@bonnyfone
bonnyfone / gist:4edabbe39927a363bfbe
Last active August 29, 2015 14:19
ShadowyTextView: stronger "shadow" effect on text
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.TextView;
/**
@bonnyfone
bonnyfone / gist:11e7f3a89aa2d10a689e
Created February 10, 2015 16:30
LogcatMonitor concept
package com.designfuture.music.util;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.regex.Pattern;
import com.musixmatch.android.util.LogHelper;
@bonnyfone
bonnyfone / gist:3fec7de3eebd39f3982b
Created December 17, 2014 17:44
check for bug from logs
find . -mmin -800 | xargs cat | grep offsetRectBetweenParentAndChild