Skip to content

Instantly share code, notes, and snippets.

View yuhanle's full-sized avatar
💭
I may be slow to respond.

Yuhanle yuhanle

💭
I may be slow to respond.
View GitHub Profile
@yuhanle
yuhanle / xcode-uninstall.sh
Created October 14, 2023 08:22 — forked from oxlb/xcode-uninstall.sh
SH file to uninstall Xcode from MacOS
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf /Applications/Xcode.app
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Developer
rm -rf ~/Library/MobileDevice
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist
@yuhanle
yuhanle / carthage-graph.pl
Created August 5, 2019 06:01 — forked from jlawton/carthage-graph.pl
Resolved Carthage dependency grapher
#!/usr/bin/env perl -w
use strict;
use Text::ParseWords qw(quotewords);
# Returns [DependencyName]
sub parseCartfile {
open(my $fh, '<', $_[0]) or die "Cannot open file $_[0]";
my @entries = ();
while (my $line = <$fh>) {