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 / .prettierrc
Created June 27, 2019 03:31
Prettier settings for NodeJS projects.
{
//USE THIS TO OVERRIDE DOUBLEQUOTES ISSUE WITH AIRBNB STANDARD
"singleQuote": true,
"trailingComma": "es5"
}
@Ruttmann
Ruttmann / .eslintrc
Created June 27, 2019 03:29
ESLint configs for NodeJS projects.
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'airbnb-base',
'prettier'
],
plugins: [ 'prettier' ],
@Ruttmann
Ruttmann / .editorconfig
Created June 27, 2019 03:28
EditorConfig standard settings.
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@Ruttmann
Ruttmann / settings.json
Last active July 29, 2019 17:15
VSCode settings.
{
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"workbench.startupEditor": "none",
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"css.colorDecorators.enable": false,
@Ruttmann
Ruttmann / reset.css
Created June 22, 2019 15:52
CSS code to Reset browser standard behavior for compatibility.
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font-family: "Open Sans", sans-serif;
font-size: 25px;
}
ul, ol, li {
@Ruttmann
Ruttmann / RN_utils.md
Created June 15, 2019 13:31
React Native utils

Shake the device (for opening DEV settings):

adb shell input keyevent 82

@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
@Ruttmann
Ruttmann / es6-hints.js
Last active April 16, 2019 13:53
JS ES6
/*
Desestruturação:
*/
const usuario = {
nome: 'Marlon',
idade: 26,
endereco: {
cidade: 'Blumenau',
estado: 'SC'

SYNC DATABASES

sudo pacman -Syyu

SEARCH MANJARO REPOS

pacman -Ss [package name]

SEARCH MANJARO SYSTEM

pacman -Qs [package name]

pacman -Qi [package name] &lt;--- MORE DETAILS