Skip to content

Instantly share code, notes, and snippets.

@AbdelrahmanAbdelwahab
AbdelrahmanAbdelwahab / xclean.sh
Created April 13, 2023 10:30 — forked from arthurdapaz/xclean.sh
Safely Reset Xcode from 9.3 to 11.6. Clean, clear module cache, Derived Data and Xcode Caches.
#!/bin/zsh
############
### zsh script to clear xcode caches and project
###
### Works from Xcode 9.3 to Xcode 11.6
###
### last date I tested: (7/24/2020)
###
### Move this script to /usr/bin/local so this will be the default usage:
### cd myXcodeWorkspace/
@AbdelrahmanAbdelwahab
AbdelrahmanAbdelwahab / resetXcode.sh
Created April 13, 2023 10:25 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
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 ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app
@AbdelrahmanAbdelwahab
AbdelrahmanAbdelwahab / .skhdrc
Created March 4, 2022 11:05 — forked from cbrgm/.skhdrc
yabai + skhd + spacebar dotfiles
####### Shortcut Hotkeys #############
# open terminal
alt - return : open -n /Applications/Alacritty.app
# restart Yabi, SpaceBar, and SKHD
alt + shift - r : \
launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; \
skhd --reload
@AbdelrahmanAbdelwahab
AbdelrahmanAbdelwahab / osx_install.sh
Created December 9, 2021 00:15 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@AbdelrahmanAbdelwahab
AbdelrahmanAbdelwahab / brew-install-script.sh
Created December 8, 2021 12:52 — forked from CliffordAnderson/brew-install-script.sh
Brew script for installing packages and applications on OSX
#!/bin/sh
# Homebrew Script for OSX
# To execute: save and `chmod +x ./brew-install-script.sh` then `./brew-install-script.sh`
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask..."
brew tap homebrew/cask