$ MESSAGE='Fix'
$ git show $(git log --oneline --reverse | grep ${MESSAGE} | awk '{print$1}' | xargs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -exu | |
TAG_COUNT=$(git tag | wc -l | grep -o '[0-9]\+') | |
CURRENT_TAG=$(git describe --abbrev=0 --tags | grep -o '[0-9\.]\+') | |
mvn versions:set -DnewVersion=$CURRENT_TAG -DgenerateBackupPoms=false | |
mvn clean package -Prelease -Dproject.version=$CURRENT_TAG -Dproject.versionCode=$TAG_COUNT -Dsign.keystore=$KEY_STORE_PATH -Dsign.alias=${PROJECT_NAME} -Dsign.storepass= -Dsign.keypass=${PROJECT_PASSWORD} | |
jarsigner -verbose -verify -certs app/target/app-signed-aligned.apk > jarsigner.verify.certs.verbose.output.txt | |
echo $(aapt dump badging app/target/app.apk | grep version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ENV['SL_RUN_UNIT_TESTS'] then | |
launcher_path = "ios-sim" | |
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}") | |
environment = { | |
'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection", | |
'XCInjectBundle' => test_bundle_path, | |
'XCInjectBundleInto' => ENV["TEST_HOST"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CI_PASSWORD="password" | |
security unlock-keychain -p ${CI_PASSWORD} /Users/Shared/Jenkins/Library/Keychains/login.keychain | |
if [ $? -ne 0 ]; then exit 1; fi | |
BUILD_DIR="/Users/Shared/CI/App/your_project/Build" | |
TARGET_SDK="iphoneos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
npm init | |
APP="my_app" | |
COFFEE=$1 | |
LESS=$2 | |
MOBILE_DIR="${APP}/mobile" | |
WWW_DIR="${MOBILE_DIR}/www" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function clone_or_pull () { | |
root_dir=`pwd` | |
if [ -d $1 ]; then | |
echo "Prepare to pull the latest version of $1" | |
cd $1 | |
git pull origin master | |
else | |
echo "Prepare to clone $1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
function _colored() { tput -Txterm setaf ${1}; echo -e ${2}; tput -Txterm sgr0; } | |
function log_error() { _colored 1 "${1}"; } # use for failures | |
function log_action() { _colored 3 "${1}"; } # use for warnings / attention | |
function log_command() { _colored "${1}"; } # use for debug messages | |
readonly MACHINE_NAME="dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY='Fix' | |
git log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | grep ${QUERY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _help() { | |
cat <<EOH | |
Usage: ./website_downloader.sh download http://xyz.xpto | |
EOH | |
} | |
case ${1} in | |
download) | |
wget -r -np -k $2 | |
;; |
I hereby claim:
- I am alabeduarte on github.
- I am alabeduarte (https://keybase.io/alabeduarte) on keybase.
- I have a public key whose fingerprint is BA9F 56A9 94B5 BD4F C670 F96D FFA0 DE90 4092 ADD0
To claim this, I am signing this object:
OlderNewer