Skip to content

Instantly share code, notes, and snippets.

View sarah-j-smith's full-sized avatar

Sarah Smith sarah-j-smith

View GitHub Profile
@sarah-j-smith
sarah-j-smith / build-editor.sh
Created February 5, 2025 11:57
Mac Bash script to build the editor version of an Unreal project
PROJ=$(find . -name "*.uproject")
if [ -z "$PROJ" ]; then
echo "Run this from inside the folder containing your Unreal project file - eg \"MyGame.uproject\"."
exit 1;
fi
# Only major version as per pathname
UNREAL_VERSION=5.5
PROJ_NAME=$(basename $PROJ .uproject)
CUR_DIR=$(pwd)
PROJ=$(find . -name "*.uproject")
if [ -z "$PROJ" ]; then
echo "Run this from inside the folder containing your Unreal project - eg \"MyGame.uproject\"."
exit 1;
fi
PROJ_NAME=$(basename $PROJ .uproject)
CUR_DIR=$(pwd)
echo "Regenerating project files for ${PROJ_NAME}..."
@sarah-j-smith
sarah-j-smith / Unreal-VSCode-intellisense-fix.md
Last active September 15, 2024 10:41
Apple Mac - C++ Properties file for Visual Studio Code - with Unreal Engine include paths

To Use This

  • Install Visual Studio Code (not Visual Studio)
  • Make sure Xcode / clang is installed per instructions
  • Ensure the VS Code extension called "C/C++ for Visual Studio Code" from Microsoft
  • Press ++p and type "C/C++: Select IntelliSense Configuration..." - press enter
  • Select "Use clang++ found at /usr/bin/"
  • Should see a file as above, mostly filled out - add the "includePath" section
  • Ensure "autosave" is turned on
  • Install Unreal Engine 5.x
@sarah-j-smith
sarah-j-smith / NSFileProtectionType
Created January 12, 2023 04:35
Complete protection type using encryption for iOS.
/// The file is stored in an encrypted format on disk and
/// cannot be read from or written to while the device is locked or booting.
Complete Protection (NSFileProtectionComplete)
@sarah-j-smith
sarah-j-smith / cross-platform-mobile-dev.csv
Last active July 18, 2022 03:12
Currently cross-platform mobile dev allowing app & play store publishing
Name Development Language
React Native Javascript
Flutter Dart
Xamarin C#
Ionic Javascript (webviews)
@sarah-j-smith
sarah-j-smith / create_mirror.sh
Created September 9, 2021 00:04
Creating a mirror of the repo to use with BFG
cd ~/src
git clone --mirror [email protected]:my-git-name/RepoWithExposedSecrets.git
java -jar ~/bin/bfg-1.14.0.jar --delete-files Credentials.json RepoWithExposedSecrets.git
@sarah-j-smith
sarah-j-smith / bfg_clean_run.sh
Created September 8, 2021 23:49
Running the BFG to clean your repo
cd ~/src/RepoWithExposedSecrets.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
@sarah-j-smith
sarah-j-smith / fresh_clone.sh
Created September 8, 2021 23:45
Fresh clone of your repo
# Get the SSH clone link from your repo and check it out with a distinctive name
mkdir -p ~/src && cd ~/src
git clone [email protected]:my-git-name/RepoWithExposedSecrets.git\
freshRepoWithExposedSecrets
@sarah-j-smith
sarah-j-smith / install_bfg.sh
Created September 8, 2021 23:41
Installing the BFG on Mac
curl -O https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar
mkdir -p ~/bin
mv -f bfg-1.14.0.jar ~/bin/.
java -jar ~/bin/bfg-1.14.0.jar
@sarah-j-smith
sarah-j-smith / bash_profile
Created September 8, 2021 23:35
Use the Java from your Android Studio
# Install Android Studio then add these lines to your ~/.bash_profile
# Java from Android SDK
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export PATH="${JAVA_HOME}/bin:${PATH}"