Skip to content

Instantly share code, notes, and snippets.

View Ruttmann's full-sized avatar
🤘

Marlon Erich Ruttmann Ruttmann

🤘
View GitHub Profile
When building an adnroid app, you might stumble upon this error:
`Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE...`. Here's how to fix it:
That's because the app you're trying to test was already installed on the device and the signatures are different now, so it's complaining. The full error will look like something like this:
`Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.example signatures do not match the previously installed version; ignoring!`
You can see that the package ID is `com.example`, well, simply run this command:
@Ruttmann
Ruttmann / remove-expired-index.sh
Created May 15, 2019 19:12 — forked from yumminhuang/remove-expired-index.sh
Remove Elasticsearch indices that older than a given date.
#!/usr/bin/env bash
#set -x
usage()
{
cat << EOF
remove-expired-index.sh