Skip to content

Instantly share code, notes, and snippets.

View dennisstritzke's full-sized avatar

Dennis Stritzke dennisstritzke

View GitHub Profile
@dennisstritzke
dennisstritzke / createAppIcon.sh
Created August 19, 2018 10:41
Scale a PNG to required sizes for iOS AppIcons using ImageMagick.
#!/usr/local/bin/bash
TARGETS=(ipad-notif-1 ipad-notif-2 ipad-settings-1 ipad-settings-2 ipad-spotlight-1 ipad-spotlight-2 ipad-app-1 \
ipad-app-2 ipad-pro-app-2 itunes)
declare -A NAME=(
[ipad-notif-1]="iPad Notifications 1x"
[ipad-notif-2]="iPad Notifications 2x"
[ipad-settings-1]="iPad Settings 1x"
[ipad-settings-2]="iPad Settings 1x"
[ipad-spotlight-1]="iPad Spotlight 1x"
@dennisstritzke
dennisstritzke / retrieveGoogleTextToSpeech.sh
Created August 11, 2018 17:54
Retrieve Google Text to Speech entries
#!/bin/bash
APITOKEN=YOUR_TOKEN
OUTDIR=voices
VOICES=(de-DE-Standard-A de-DE-Standard-B de-DE-Wavenet-A de-DE-Wavenet-B de-DE-Wavenet-C de-DE-Wavenet-D)
TEXT="Hier ein deutscher Satz"
mkdir -p $OUTDIR
for voice in "${VOICES[@]}"
@dennisstritzke
dennisstritzke / installDockerOpenShiftClientTools.sh
Last active May 5, 2018 14:29
Install latest docker-ce version and OpenShift Client Tools 3.7.2 on Ubuntu.
#!/bin/sh
set -e
set -x
# ==> Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
@dennisstritzke
dennisstritzke / fileEncryption.md
Last active March 6, 2023 21:00
A very short documentation on using OpenSSL keys to encrypt and decrypt files.

Procedure

  1. Create a random key.
  2. Encrypt the random key via an SSH RSA public key
  3. Send the encrypted file and encrypted key
  4. Encrypt the key
  5. Encrypt the file

Create key via

openssl genrsa -out rsa.private 4096