View xcode_project_file_count.rb
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
#!/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" |
View copy images referenced by html.sh
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
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" |
View bulk_watermark.sh
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 | |
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 |
View listprofiles.sh
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 | |
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: "\ |
View sort-plist.py
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
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) |
View mock-http-server.js
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
var ServerMock = require("mock-http-server"); | |
// Run an HTTP server on localhost:9000 | |
var server = new ServerMock({ host: "localhost", port: 9000 }); | |
server.start(Function()); | |
server.on({ | |
method: '*', | |
path: '*', |
View plist-to-json.swift
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
// | |
// main.swift | |
// plist-to-json | |
// | |
// Created by Dominik Pich on 20.07.17. | |
// Copyright © 2017 Dominik Pich. All rights reserved. | |
// | |
import Foundation |
View ps_osx.sh
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 | |
IFS=$'\n' | |
#help text | |
usage="$(basename "$0") [-h or -?] [-i] [-a] [-s] [-d] [-u] [-s] [-b] | |
Runs 'ps ax' and verify the code signature of every running proccess using apple's 'codesign' tool | |
-h/-? :: help for command | |
-i :: dont show an inital count before analyzing each process |
NewerOlder