Skip to content

Instantly share code, notes, and snippets.

View robertfsegal's full-sized avatar

Robert Segal robertfsegal

View GitHub Profile
@robertfsegal
robertfsegal / gist:6adc43658d7a7ddc3b22a634a98d1372
Created June 23, 2025 23:59
Unreal 5 ResavePackages python script example
import Unreal
args = [
# Run the specific commandlet
"-run=ResavePackages",
"-Replace", # Save the asset once fixed up
# Don't show UI
"-NoPause", # Prevents waiting for key presses
"-NoIntro", # Skip intro movies (just in-case)
@robertfsegal
robertfsegal / info.plist
Created July 16, 2023 04:41
Unreal 5.2 - info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.Epic.Unreal</string>
<key>CFBundleURLSchemes</key>
@robertfsegal
robertfsegal / info.plist
Last active July 16, 2023 03:43
Unreal 5.2.1 - Mac - info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>
@robertfsegal
robertfsegal / gist:afa5f5be8085bbad79b3b781dde04806
Created May 4, 2023 17:41
Modifying the changelist in the Unreal Engine build.version in the cases where using UpateLocalVerison batch file doesn't work
@echo off
if "%WORKSPACE_UE4_DIR%" == "" (
set WORKSPACE_UE4_DIR=%WORKSPACE%
) else (
set WORKSPACE_UE4_DIR=%WORKSPACE%\%WORKSPACE_UE4_DIR%
)
@echo off
@robertfsegal
robertfsegal / gist:5701902df6dbe2fb44a064a073886a05
Created January 5, 2017 19:43
Android logcat output showing only Upsight milestone and event calls
adb logcat | grep -v milestone | grep -E "Upsight.*\"(scope|type)"
@robertfsegal
robertfsegal / gist:b57aa11a78414d53ea319b00846e341b
Created July 28, 2016 18:51
Find all jar files from the folder you are in and search for Google Play package mentions only
find . -name *jar -exec jdeps $(pwd)/{} \; | grep gms
@robertfsegal
robertfsegal / gist:8faaa5aed1bf94b7ae7dadb9be060b6f
Created July 23, 2016 19:07
Print out dex class count to get a sense how close we are to multi-dexing 65k limit
$ANDROID_HOME/build-tools/23.0.3/dexdump -f classes.dex | grep -c 'Class descriptor'
@robertfsegal
robertfsegal / gist:b48bee32ce44ca62b3ecb80a1efe2c36
Created May 31, 2016 17:50
Archive a range of commits into a zip
# Taken from http://tosbourn.com/using-git-to-create-an-archive-of-changed-files/
#
git archive -o ~/Desktop/update.zip HEAD $(git diff --name-only f0ae46ac15a3d420c08de8ab440b4eb80b66bf7a --diff-filter=ACMRTUXB)
@robertfsegal
robertfsegal / LICENSE
Created May 3, 2016 21:01 — forked from commonsguy/LICENSE
deaar: Convert Android AAR Artifacts Into Library Projects
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,