Skip to content

Instantly share code, notes, and snippets.

View borgogelli's full-sized avatar

Andrea Borgogelli Avveduti borgogelli

View GitHub Profile
@borgogelli
borgogelli / jarsigner-and-zipalign.md
Created July 29, 2018 16:00
jarsigner and zipalign

Now, we need to sign the unsigned APK and run an alignment utility on it to optimize it and prepare it for the app store. If you already have a signing key, skip these steps and use that one instead.

Let’s create keystore file using this command Syntax:

keytool -genkey -v -keystore .keystore -alias -keyalg -keysize -validity

For Example :

@borgogelli
borgogelli / install-deps-with-android.sh
Created July 23, 2018 07:38 — forked from danielgomezrico/install-deps-with-android.sh
Android - install dependencies to build android projects on linux/ci/other using sdkmanager/android terminal tools
#!/usr/bin/env bash
#
# Install required dependencies with android command
#
for DEP in android-25 \
build-tools-25.0.2 \
tool \
extra-android-m2repository \
extra-android-support \
@borgogelli
borgogelli / sign_apk.sh
Created July 23, 2018 07:35 — forked from caingougou/sign_apk.sh
Create keystore file and sign a jar file (or android package)
# create keystore file
keytool -genkey -v -keystore [my-release-key].ketstore -keyalg RSA -validity 1000 -alias [some_alias]
# sign package
jarsigner -keystore my-release-key.ketstore [some-release-unsigned.apk] some_alias
# verify signed package
jarsigner -verify [some-release-unsigned.apk]
@borgogelli
borgogelli / simple-git-workflow.md
Created July 23, 2018 07:35 — forked from pratamawijaya/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

@borgogelli
borgogelli / iterm2-solarized.md
Created July 23, 2018 07:32 — forked from pratamawijaya/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@borgogelli
borgogelli / update-android-sdk.sh
Last active July 23, 2018 07:17 — forked from pratamawijaya/update.sh
Update android sdk via bash
#!/usr/bin/env bash
#
# Install JUST the required dependencies for the project.
# May be used for ci or other team members.
#
for I in android-25 \
build-tools-25.0.2 \
tool \
extra-android-m2repository \
@borgogelli
borgogelli / gist:9389d4eee1ef09ae3e78a1cdf50625b4
Created June 15, 2018 09:07
How do I update a GitHub forked repository?
# Extracted from https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream