Skip to content

Instantly share code, notes, and snippets.

View caiofaustino's full-sized avatar

Caio Faustino caiofaustino

View GitHub Profile
### Keybase proof
I hereby claim:
* I am galvanize on github.
* I am caiovmf (https://keybase.io/caiovmf) on keybase.
* I have a public key ASD58IJnXpjjcOa_DXOCmxav2oiIqLVw0HV-bxVzH6DImAo
To claim this, I am signing this object:
@caiofaustino
caiofaustino / get_repo.sh
Created March 16, 2021 15:38
Download Maven repository files recursively
#!/bin/bash
echo "Starting curl script"
echo ""
download_path=$1
echo "download_path: $download_path"
local_path=$2
echo "local_path: $local_path"
script_path="/your/script/path/get_repo.sh"
@caiofaustino
caiofaustino / sign.sh
Created March 16, 2021 15:41
Sign all files in folder recursively
#!/bin/bash
echo "Starting sign script"
script_path="/your/script/path/sign.sh"
if [ -d "$1" ]; then
echo "Path exists!"
for f in $1/*; do
if [[ $f == *"."[a-z][a-z][a-z] ]]; then
filename=$(basename "$f")
@caiofaustino
caiofaustino / upload_artifacts.sh
Created April 15, 2021 11:57
Script to upload artifacts to Maven
#!/bin/bash
echo "Starting upload script"
sonatype_user="<your_user>"
sonatype_password="<your_password>"
# Path where the files are located
path=$1
# Path inside the repo if not root path, (com/package/group)
repo_path_base=$2
#!/bin/bash
echo "Starting POM script"
root_path="/path/to/your/modules"
pom_template="/path/to/your/pom_template.xml"
# Script assumes root path being the one where the artifact/modules folders are
if [ -d "$root_path" ]; then
echo "Path exists!"
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.adyen.checkout</groupId>
%%%ARTIFACT%%%
%%%VERSION%%%
<packaging>aar</packaging>
%%%NAME%%%
%%%DESCRIPTION%%%
<url>https://github.com/Adyen/adyen-android</url>