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 mozilla/sops:latest | |
# install google cloud SDK | |
RUN curl -sSL https://sdk.cloud.google.com | bash | |
# Usage: | |
# docker build -t gcloud-sops . | |
# docker run --rm -v /local/file/to/encrypt.yaml:/encryption-target \ | |
# -e KMS_KEY=projects/YOUR-GCLOUD-PROJECT-ID/locations/global/keyRings/YOUR_KEYRING_ID/cryptoKeys/YOUR_KEY_ID \ | |
# -v ~/.config/gcloud:/root/.config/gcloud \ | |
# -exec gcloud-sops /bin/sh -c "sops --encrypt --gcp-kms \$KMS_KEY /encryption-target" > /my/local/path/output.json |
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
// Return true if x is a power of 2 | |
function isPow2(x) { | |
return (x & (x - 1)) === 0; | |
} | |
// To keep track of the errors we have seen | |
const loggedErrors = {}; | |
// Function to tell sentry if it should send the error | |
function shouldSendCallback(kwargs) { | |
let errKey; |
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 | |
# Currently New Relic doesn't provide a script to upload .dSYM files for BitCode enabled apps. | |
# To use this... | |
# 1) download the dSYM files for a given build from iTunesConnect | |
# 2) append the file with .zip and then double click to unzip the .dSYMs | |
# 3) run this script from with in the directory that contains the .dSYM files | |
count=0 | |
for DSYM in $( ls -d *".dSYM/" ); do |
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 | |
# Configure whitespace check settings | |
WHITESPACE_CHECK_OPTIONS='blank-at-eol,trailing-space,space-before-tab,indent-with-non-tab,tabwidth=1' | |
# Run whitepace checks against source files | |
WHITESPACE_CHECK_FILES_DEFAULT='(.php|.js|.css|.less|.html|.txt|.xml)$' | |
# User can override above setting by configuration | |
WHITESPACE_CHECK_FILES=$(git config hooks.whitespace.filesregex) |