Skip to content

Instantly share code, notes, and snippets.

View IonutNegru87's full-sized avatar

Negru Ionut Valentin IonutNegru87

  • @accesa.eu
  • Iasi
View GitHub Profile
ffmpeg -y -i video.webm -vf palettegen palette.png
ffmpeg -y -i video.webm -i palette.png -filter_complex paletteuse -r 10 animation.gif
Source: http://www.ubuntubuzz.com/2017/08/convert-mp4-webm-video-to-gif-using-ffmpeg.html
@lboulard
lboulard / README.md
Last active July 12, 2022 07:35
Command line ANDROID SDK in Linux

Android SDK will be installed in $HOME/.local/share/android/sdk.

On page https://developer.android.com/studio/index.html#downloads, got to section "Get just the command line tools" at page end and download Linux package. With last edition of this document, this is commandlinetools-linux-8092744_latest.zip.

export ANDROID_SDK_ROOT=$HOME/.local/share/android/sdk
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk-bundle
mkdir -p $ANDROID_SDK_ROOT
@Pulimet
Pulimet / AdbCommands
Last active November 16, 2024 15:16
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@BramYeh
BramYeh / LowercaseEnumTypeAdapterFactory
Created March 28, 2017 13:11
LowercaseEnumTypeAdapterFactory
public class LowercaseEnumTypeAdapterFactory implements TypeAdapterFactory {
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
Class<T> rawType = (Class<T>) type.getRawType();
if (!rawType.isEnum()) {
return null;
}
final Map<String, T> lowercaseToConstant = new HashMap<String, T>();
for (T constant : rawType.getEnumConstants()) {
lowercaseToConstant.put(toLowercase(constant), constant);