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
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha1" | |
"crypto/subtle" | |
"encoding/hex" | |
"fmt" | |
"os" | |
) |
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
<!-- | |
Don't forget to set the /path/to/.monitrc path! | |
* Save this into: ~/Library/LaunchAgents/vb.monit.plist | |
* Load with (auto loaded at user login): launchctl load ~/Library/LaunchAgents/vb.monit.plist | |
* Unload with: launchctl unload ~/Library/LaunchAgents/vb.monit.plist | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> |
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 -e | |
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
cd "${THIS_SCRIPT_DIR}/.." | |
# Check if there's something uncommitted (don't release if there are files | |
# not yet committed) | |
set +e |
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 | |
echo "----------------" | |
echo "Removing existing keys" | |
ssh-add -K | |
echo "----------------" | |
echo "List of keys:" | |
ssh-add -l | |
echo "----------------" | |
ssh-agent -k |
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 | |
echo "=== List of available, **shared** Schemes ===" | |
set -x | |
# if you use a Workspace (.xcworkspace) file | |
xcodebuild -workspace $BITRISE_PROJECT_PATH -list | |
# or if you use a Project file (.xcodeproj) instead | |
xcodebuild -project $BITRISE_PROJECT_PATH -list | |
set +x | |
echo "=============================================" |
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
FROM ubuntu:16.04 | |
RUN apt-get update -qq | |
RUN apt-get install -y postgresql-client |
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 | |
# 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 |
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
#!/usr/bin/env bash | |
set -ex | |
if [ -z "$GCP_PROJECT_ID" ] ; then | |
echo '[!] GCP_PROJECT_ID is not set - required' | |
exit 1 | |
fi | |
gcloud config set project "$GCP_PROJECT_ID" | |
function create_gke_cluster_with_istio { |
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 -ex | |
if [ -z "$HEROKU_APP_ID" ] ; then | |
echo '!!! HEROKU_APP_ID not set' | |
exit 1 | |
fi | |
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 |
NewerOlder