Skip to content

Instantly share code, notes, and snippets.

@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
@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

Keybase proof

I hereby claim:

  • I am tcurdt on github.
  • I am tcurdt (https://keybase.io/tcurdt) on keybase.
  • I have a public key whose fingerprint is 3909 C287 9232 7FAD 3810 0EAF 0463 3A57 7C20 0941

To claim this, I am signing this object:

@tcurdt
tcurdt / ant
Last active June 19, 2018 20:41
towards the jdeb 2.0 syntax
<target name="package" depends="jar">
<taskdef name="deb" classname="org.vafer.jdeb.ant.DebAntTask"/>
<deb destfile="${build.dir}/${ant.project.name}.deb" verbose="true">
<control>
<package>(no default)</package>
<version>(no default)</version>
<section>(default 'misc')</section>
<priority>(default 'low')</priority>
<architecture>(default 'all')</architecture>