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
export PATH=/opt/homebrew/bin:$PATH | |
export PATH="~/.rbenv/shims:${PATH}" | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
source $(brew --prefix nvm)/nvm.sh | |
alias python="python3" | |
# Load Git completion | |
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash |
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
*~ | |
## OS X Finder | |
.DS_Store | |
## Build generated | |
build/ | |
DerivedData | |
## Various settings |
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
[alias] | |
hard = reset --hard HEAD^ | |
soft = reset --soft HEAD^ | |
amend = commit --amend | |
ck = "!f() { git checkout "$1"; }; f" | |
ckb = "!f() { git checkout -b "$1"; }; f" | |
rbi = "!f() { git rebase -i "$1"; }; f" | |
rbc = rebase --continue | |
rba = rebase --abort | |
rbdate = rebase --ignore-date |
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
default_platform(:ios) | |
platform :ios do | |
lane :slack do | |
slack(message: "Successfully distributed a new beta build", | |
channel: "#ios", | |
slack_url: "https://hooks.slack.com/services/#") | |
end |
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
FRAMEWORK="${TARGET_BUILD_DIR}/${WRAPPER_NAME}/Frameworks/xxx.framework" | |
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) | |
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" | |
EXTRACTED_ARCHS=() | |
for ARCH in $ARCHS | |
do | |
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH" | |
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH") |
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/python | |
import PIL | |
from PIL import Image, ExifTags | |
import argparse | |
import os | |
import shutil | |
import subprocess | |
exifcmd = "/usr/local/bin/exiftool" |
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 | |
scaleFactor=0.5 | |
for file in *.mp4; do | |
# Extract original dimensions | |
width=$(ffprobe -v error -select_streams v:0 -show_entries stream=width -of csv=p=0 "${file}") | |
height=$(ffprobe -v error -select_streams v:0 -show_entries stream=height -of csv=p=0 "${file}") | |
# Calculate new dimensions |