Skip to content

Instantly share code, notes, and snippets.

View viktorbenei's full-sized avatar

Viktor Benei viktorbenei

  • Bitrise Ltd (CTO & Cofounder)
  • Hungary
View GitHub Profile
@mtauraso
mtauraso / add_launchd_to_tcc.sh
Last active February 10, 2021 04:45
TCC Database Script
#!/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"
@viktorbenei
viktorbenei / add_launchd_to_tcc.sh
Last active August 29, 2015 14:27 — forked from mtauraso/add_launchd_to_tcc.sh
TCC Database Script
#!/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"
@fadookie
fadookie / bash_list_library.sh
Last active August 2, 2017 21:55
Example of bash array to pipe-delimited string de/serialization, for discussion at https://discuss.bitrise.io/t/output-from-multiple-instances-of-the-same-step/538
# 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
}
@MattNewberry
MattNewberry / bluepill.sh
Created February 8, 2017 17:12
Bluepill step
#!/bin/bash
set -ex
#install bluepill
git clone git@github.com:linkedin/bluepill.git "$BITRISE_SOURCE_DIR/bluepill"
#build bluepill
cd "$BITRISE_SOURCE_DIR/bluepill"
./scripts/bluepill.sh build
@PillowUnicorn
PillowUnicorn / android_bitrise.yml
Created April 28, 2017 22:21
Pillow's Android bitrise.yml
---
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:
@PillowUnicorn
PillowUnicorn / ios-bitrise.yml
Created April 28, 2017 22:29
Pillow's iOS bitrise.yml
---
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:
@viktorbenei
viktorbenei / install-bitrise-cli.sh
Last active July 13, 2019 22:16
install-bitrise-cli.sh
#!/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} ..."
@shinmiy
shinmiy / bitrise_status.1m.rb
Last active August 11, 2021 04:34
Bitriseの状況をBitbarで表示するスクリプト | Script to show Bitrise build statuses in Bitbar
#!/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' }