Skip to content

Instantly share code, notes, and snippets.


Viktor Benei viktorbenei

  • Bitrise Ltd (CTO & Cofounder)
  • Hungary
View GitHub Profile
viktorbenei /
Created May 12, 2019
Create a GKE Kubernetes cluster (with Istio addon enabled) and install Knative on top of it
#!/usr/bin/env bash
set -ex
if [ -z "$GCP_PROJECT_ID" ] ; then
echo '[!] GCP_PROJECT_ID is not set - required'
exit 1
gcloud config set project "$GCP_PROJECT_ID"
function create_gke_cluster_with_istio {
#!/usr/bin/env bash
set -ex
if [ -z "$HEROKU_APP_ID" ] ; then
echo '!!! HEROKU_APP_ID not set'
exit 1
if [ -z "$HEROKU_DB_ADDON_ID" ] ; then
echo "!!! HEROKU_DB_ADDON_ID not set. You can get the Heroku DB addon ID from: $ heroku pg:info -a $HEROKU_APP_ID | grep -i 'add-on'"
exit 1
viktorbenei /
Last active Nov 2, 2018
bitrise flank config

Bitrise Flank config

See the bitrise.yml for an example setup, using on

The config requires the following variables to be set as Secrets:

  • SERVICE_ACCOUNT_KEY_JSON : the Google (Firebase) Service Account JSON
  • GOOGLE_CLOUD_PROJECT : the Firebase google project name/id

Note: if you'd get an error like Test run failed to complete. Expected 786 tests, received 660 that can mean that the test app is not orchestrator compatible. If that's the case simply change the use-orchestrator: true to use-orchestrator: false in the Flank config (flank.yml) and it'll work.

viktorbenei / main.go
Last active Jul 7, 2022
sha1 hmac hexdigest signature
View main.go
package main
import (
viktorbenei / howto-recover-google-authenticator-keys.txt
Created Apr 12, 2018 — forked from jbinto/howto-recover-google-authenticator-keys.txt
Recovering Google Authenticator keys from Android device for backup
View howto-recover-google-authenticator-keys.txt
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# create a temp dir for the "install"
mkdir /tmp/lokalise
# change the "working directory" into that directory
cd /tmp/lokalise
viktorbenei /
Created Nov 24, 2017
Bitrise CLI base fish shell completion for "run" and "version" commands
# ~/.config/fish/completions/
# Run
complete -f -c bitrise -n '__fish_use_subcommand' -a run -d 'run specified workflow'
complete -f -c bitrise -n '__fish_seen_subcommand_from run' -a (bitrise workflows --id-only)
# Version
complete -f -c bitrise -n '__fish_use_subcommand' -a version -d 'cli version'
complete -f -c bitrise -n '__fish_seen_subcommand_from version' -s 'f' -l 'full' -d 'print full version'
complete -f -c bitrise -n '__fish_seen_subcommand_from version' -l 'format' -a 'raw json yml' -d 'format of print'
viktorbenei /
Last active Jul 13, 2019
#!/usr/bin/env bash
set -e
function main {
if [ -z "${bitrise_cli_ver}" ] ; then
echo " [!] No version specified, required! Run this script as: $ bash x.x.x"
exit 1
echo "Installing Bitrise CLI v${bitrise_cli_ver} ..."
viktorbenei / Dockerfile
Last active Jul 21, 2020
docker-compose.yml (v3) example
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update -qq
RUN apt-get install -y postgresql-client
viktorbenei / gist:08bbe5c4278e33b8cc05
Created Mar 22, 2016
diff system_reports/osx-xcode-7.2.log system_reports/osx-xcode-7.3.log
View gist:08bbe5c4278e33b8cc05
< * BITRISE_OSX_STACK_REV_ID: 2016_01_28_1
> * BITRISE_OSX_STACK_REV_ID: 2016_03_17_1
< * Go: go version go1.5.3 darwin/amd64
> * Go: go version go1.6 darwin/amd64
> java version "1.8.0_74"