This file contains hidden or 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 -euo pipefail | |
| # โโ dropbox-backup โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| # Ad-hoc, on-demand backup of the ENTIRE Dropbox account to the LaCie drive. | |
| # | |
| # Pulls straight from the Dropbox cloud over the API via rclone. It does NOT | |
| # read, touch, or depend on the local Dropbox sync folder | |
| # (~/Library/CloudStorage/Dropbox), so it can't disturb normal Dropbox sync, | |
| # and it also captures the ~4k files that are currently "online only". |
This file contains hidden or 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 | |
| # Usage: make_contact_sheets.sh <source_dir> <dest_dir> | |
| # Builds numbered contact-sheet grids (chronological, labeled by filename) for one event. | |
| set -e | |
| SRC="$1" | |
| DEST="$2" | |
| CHUNK=24 # photos per sheet | |
| TILE="6x4" | |
| THUMB="240x240" |
This file contains hidden or 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 | |
| # Dropbox โ Nextcloud import script for <<USER>> | |
| # ----------------------------------------------- | |
| set -euo pipefail | |
| BASE_DIR="/home/roesrathkleineichen/domains/<<DESTINATION>>" | |
| RCLONE="/usr/bin/rclone" | |
| PHP="/usr/bin/php" | |
| cd "$BASE_DIR" || { echo "โ Failed to cd to $BASE_DIR"; exit 1; } |
This file contains hidden or 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/ruby | |
| require 'xcodeproj' | |
| projects = { | |
| 'my app: variant a' => '/Users/dpich/Desktop/e80f427ed_a.xcodeproj', | |
| 'my app: variant b' => '/Users/dpich/Desktop/e80f427ed_a_modified.xcodeproj', | |
| } | |
| puts "# File Counts" |
This file contains hidden or 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
| p="/Users/dpich/Desktop/t/bilder/impressionen/" | |
| echo $p | |
| t="/Users/dpich/Dropbox (Personal)/Maria's Art/__Copies For Website/Impressionen/" | |
| echo $t | |
| cd "$t" | |
| for f in `ls $p`; do | |
| file=$p/$f | |
| img=`pcregrep -o1 -e "<img src=\"(.*_med).*\\.jpeg\"" "$file"` | |
| img_path=$p/$img"_hr.jpeg" |
This file contains hidden or 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 | |
| files=`find ~/Desktop/maria -name *_med*.jpeg -a -not -name maria*.jpeg` | |
| text="ยฉ Maria Pich 2020" | |
| for file in $files; do | |
| echo "Add watermark to $file" | |
| magick convert "$file" -font Helvetica -pointSize 15 -draw "gravity SouthEast fill grey text 50,30 '$text' fill white text 51,31 '$text'" "$file" | |
| done |
This file contains hidden or 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 | |
| for f in ~/Library/MobileDevice/Provisioning\ Profiles/* | |
| do | |
| echo \ | |
| $(basename "${f%.*}") \ | |
| "=> " \ | |
| `security cms -D -i "$f" | plutil -extract "Entitlements.application-identifier" xml1 -o - -- - | sed -n -e 's/.*<string>\(.*\)<\/string>.*/\1/p'` | |
| echo " Name: "\ |
This file contains hidden or 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
| import plistlib | |
| import sys | |
| with open(sys.argv[1],"rb") as input: | |
| plist = plistlib.load(input) | |
| with open(sys.argv[2],"wb") as output: | |
| plistlib.dump(plist, output) |
NewerOlder