Skip to content

Instantly share code, notes, and snippets.

View KevinAS28's full-sized avatar

Kevin A.S KevinAS28

View GitHub Profile
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active September 22, 2024 11:03
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@milankragujevic
milankragujevic / build.sh
Last active December 10, 2023 13:02
Compile FFmpeg with support for OMX encoding of H264 video on Raspberry Pi 3
wget https://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb -O /tmp/deb-multimedia-keyring.deb
sudo dpkg -i /tmp/deb-multimedia-keyring.deb
rm /tmp/deb-multimedia-keyring.deb
sudo sh -c 'echo "deb https://www.deb-multimedia.org buster main non-free" >> /etc/apt/sources.list'
sudo apt update
sudo apt upgrade -y
sudo apt install -y libfdk-aac-dev libomxil-bellagio-dev libx264-dev libasound2-dev libmp3lame-dev autoconf automake build-essential libfreetype6-dev libtool pkg-config texinfo zlib1g-dev git
cd ~
git clone https://github.com/ffmpeg/ffmpeg -b release/4.2
cd ffmpeg/
@qinshulei
qinshulei / ConvertAndroidVectorDrawable2png.md
Last active September 20, 2022 07:29
Convert Android VectorDrawable to png

转换方法:

  1. Convert Android VectorDrawable to SVG:

使用附件中的java程序。命令如下:

cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
@tsaqib
tsaqib / ideas.md
Last active September 21, 2024 09:57
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@httnn
httnn / gist:b1d772caf76cdc0c11e2
Created April 9, 2015 16:23
Calculate brightness of Android Bitmap
/*
Calculates the estimated brightness of an Android Bitmap.
pixelSpacing tells how many pixels to skip each pixel. Higher values result in better performance, but a more rough estimate.
When pixelSpacing = 1, the method actually calculates the real average brightness, not an estimate.
This is what the calculateBrightness() shorthand is for.
Do not use values for pixelSpacing that are smaller than 1.
*/
public int calculateBrightnessEstimate(android.graphics.Bitmap bitmap, int pixelSpacing) {
int R = 0; int G = 0; int B = 0;
int height = bitmap.getHeight();
@rjzak
rjzak / PyUtils.cpp
Last active May 15, 2024 21:06
Convert between Python list/tuples and C++ vectors
#include <Python.h> // Must be first
#include <vector>
#include <stdexcept>
#include "PyUtils.h"
using namespace std;
// =====
// LISTS
// =====