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/ruby | |
require 'httpclient' | |
require 'json' | |
require 'time' | |
# Bitrise情報 / Bitrise Info | |
TOKEN = 'YOUR_TOKEN_HERE' | |
APPS = { 'Your App Name' => 'App Slug', 'Another App Name' => 'Another App Slug' } |
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 main { | |
bitrise_cli_ver="$1" | |
if [ -z "${bitrise_cli_ver}" ] ; then | |
echo " [!] No version specified, required! Run this script as: $ bash install-bitrise-cli.sh x.x.x" | |
exit 1 | |
fi | |
echo "Installing Bitrise CLI v${bitrise_cli_ver} ..." |
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
--- | |
format_version: 1.1.0 | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
app: | |
envs: | |
- BITRISE_PROJECT_PATH: ios/pro_mobile.xcodeproj | |
opts: | |
is_expand: false | |
- BITRISE_SCHEME: pro_mobile | |
opts: |
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
--- | |
format_version: 1.1.0 | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
trigger_map: | |
- push_branch: qa | |
workflow: qa | |
workflows: | |
_init_install: | |
steps: | |
- activate-ssh-key: |
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 | |
set -ex | |
#install bluepill | |
git clone [email protected]:linkedin/bluepill.git "$BITRISE_SOURCE_DIR/bluepill" | |
#build bluepill | |
cd "$BITRISE_SOURCE_DIR/bluepill" | |
./scripts/bluepill.sh build |
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
# WARNING! The following is not as safe as I originally thought and I'm not sure yet the right way to do this. | |
# See https://unix.stackexchange.com/questions/383541/how-to-save-restore-all-shell-options-including-errexit | |
enable_safety() { | |
BITRISE_CLI_PREVIOUS_SHELL_OPTIONS=$(set +o) | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
} |
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 | |
# This will add lauchd to the list of allowed processes for accessibility access | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/osascript',1,1,1,NULL)" | |
# This outputs the rows in the TCC database | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | |
echo "Restart is required for these changes to take effect" |
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 | |
# This will add lauchd to the list of allowed processes for accessibility access | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/launchd',1,1,1,NULL)" | |
# This outputs the rows in the TCC database | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | |
echo "Restart is required for these changes to take effect" |
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
docker rmi $(docker images -q -f dangling=true) |
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
# | |
# requires 'pwgen', can be installed with brew | |
# | |
# add this to your .bash_profile, .profile or .bashrc for quick terminal access | |
# input: the length of the password | |
# usage example: gensecpsw 16 | |
# example result: XjQ%uWQ.&7-T4@`( | |
# | |
gensecpsw() { | |
printf '%s' $(pwgen -B -c -s -n -y $1 1) |pbcopy; echo "Has been copied to clipboard" |
NewerOlder