Skip to content

Instantly share code, notes, and snippets.

View pauloantonelli's full-sized avatar

Paulo Antonelli pauloantonelli

View GitHub Profile
@pauloantonelli
pauloantonelli / pre-build.sh
Created March 8, 2022 12:58 — forked from evelyne24/pre-build.sh
Bash script to extract the build name and number from `pubspec.yaml` before building your Flutter app
#!/bin/bash
set -e
file=$(cat pubspec.yaml)
BUILD_NAME=$(echo $file | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p')
BUILD_NUMBER=$(git rev-list HEAD --count)
@pauloantonelli
pauloantonelli / utpl_download.sh
Last active October 7, 2022 15:43 — forked from jpallari/utpl_download.sh
Script that downloads Youtube playlist and extracts the audio from the downloaded clips.
#!/bin/bash
youtube-dl --rm-cache-dir --cookies ./youtube.com_cookies.txt --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output "%(title)s.%(ext)s" --yes-playlist 'https://youtube.com/playlist?list=PL14877460D389BBFA'
@pauloantonelli
pauloantonelli / sourceTree_device_not_configured.txt
Last active February 23, 2023 13:24 — forked from RockinPaul/sourceTree_device_not_configured.txt
SourceTree: Device not configured (on MacOS)
In console:
git config credential.helper
You will see: osxkeychain
git config --global credential.helper sourcetree
Then if you perform git config credential.helper again
You will see: sourcetree
@pauloantonelli
pauloantonelli / colocar vscode como editor de git.txt
Created March 16, 2023 18:42
Colocar vsCode como Editor de Git
Vscode como editor padrão do git :
git config --global core.editor "code -w"
comando para verficar se a instalação foi feita correto :
git config --global -e
Se der algum erro como:
"hint: Waiting for your editor to close the file... code -w: code: command not found error: There was a problem with the editor 'code -w'".
Vá no VS Code > command(control) + shift + p > procure por code > escolha Shell Command: Install ‘code' command in PATH