Skip to content

Instantly share code, notes, and snippets.

View gremlinflat's full-sized avatar
😅

Fahri gremlinflat

😅
View GitHub Profile
@gremlinflat
gremlinflat / VLC Build racing condition.md
Created July 21, 2025 20:27
Investigation Report for build racing condition on new VLC app target

VLC iOS Build Race Condition Investigation

Date: July 8, 2025

Problem

Symptoms: Clean builds fail randomly with no such module 'VLCKit' errors in watchOS targets, while dirty builds succeed consistently.

Root Cause: Race condition between iOS and watchOS pods copying XCFrameworks to the same destination path concurrently.

@gremlinflat
gremlinflat / bulk_update_git.sh
Created September 29, 2023 01:59
Bulk update if you forgot to switch git commit account for work
git filter-branch --env-filter '
WRONG_EMAIL="wrong@example.com"
NEW_NAME="New Name Value"
NEW_EMAIL="correct@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
#!/usr/bin/env bash
version=$(go version|cut -d' ' -f 3)
release=$(curl --silent https://go.dev/doc/devel/release | grep -Eo 'go[0-9]+(\.[0-9]+)+' | sort -V | uniq | tail -1)
if [[ $version == "$release" ]]; then
echo "latest go release already installed: $release"
exit 0
fi
@gremlinflat
gremlinflat / m1-cocoapods.sh
Last active September 12, 2022 16:43
Fix CocoaPods Ruby error at M1 Processor
#!/usr/bin/env bash
# Clean Install CocoaPods Install
sudo gem uninstall cocoapods
sudo gem install cocoadpods
sudo arch -x86_64 gem install ffi
# Cleaning old caches & update cocoapods
rm -rf "${HOME}/Library/Caches/CocoaPods"
pod update
@gremlinflat
gremlinflat / clean-install-cocoapods.sh
Created September 6, 2022 06:57
Force clear CocoaPods
#!/usr/bin/env bash
sudo gem uninstall cocoapods
sudo gem install cocoapods
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf Pods
pod update