Skip to content

Instantly share code, notes, and snippets.

@tcurdt
tcurdt / update_spark.sh
Created May 6, 2016 00:39 — forked from hjanuschka/update_spark.sh
Fix UUID inside Spark inspector
#!/bin/bash
#get current xcode uuid
UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
#update spark inspector uuid
defaults write ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/SparkInspectorXcodePlugin.xcplugin/Contents/Info.plist DVTPlugInCompatibilityUUIDs -array-add $UUID
@tcurdt
tcurdt / sign.sh
Created August 8, 2016 19:38 — forked from ezimuel/sign.sh
Sign and verify a file using OpenSSL command line tool. It exports the digital signature in Base64 format.
#!/bin/bash
# Sign a file with a private key using OpenSSL
# Encode the signature in Base64 format
#
# Usage: sign <file> <private_key>
#
# NOTE: to generate a public/private key use the following commands:
#
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem