Skip to content

Instantly share code, notes, and snippets.

View aiwaiwa's full-sized avatar
💭
⌨️ EnjoyingLife

aiwaiwa

💭
⌨️ EnjoyingLife
View GitHub Profile
@aiwaiwa
aiwaiwa / resizer_warning.md
Last active June 20, 2024 16:56
Previously saved and current root prim size are different

Previously known original root prim size and current one are different.

The warning indicates that the current size of the root prim differs from its previously saved original size. The warning appears when the rem_resizer script (v5 or later) is dropped in the prim.

This discrepancy could cause previously saved presets that contain Resizer data to apply incorrectly, as they are kept as the multipliers for the root prim size rather than literal sizes.

Choose:

  • Resize - to command the script to resize the entire prim set so that the root prim can match its previously known original size.
@aiwaiwa
aiwaiwa / mix_phx_server.ps1
Last active June 19, 2023 15:00
Run elevated `mix phx.server` on Windows
Start-Process powershell -ArgumentList "-Command Set-Location '$PWD'; mix.bat phx.server" -Verb RunAs
@aiwaiwa
aiwaiwa / compare_phoenix_versions.exs
Last active July 21, 2023 17:23
Compare Phoenix Versions with extra custom steps like mix phx.gen.live Accounts User users name:string
#
# Compare Phoenix releases with additional custom setup to enhance comparison.
#
# Usage:
# elixir <this_script_name.exs> 1.7.2
# (downloads 1.7.2 and compares with the closest previously downloaded version if available)
#
# elixir <this_script_name.exs> 1.7.2 1.7.7
# (downloads both versions and compares)
#
@aiwaiwa
aiwaiwa / heroicons_gen.exs
Last active March 10, 2023 15:36
heroicons_gen for Phoenix >=1.7.1
# |
# | This is designed for Phoenix >= 1.7.1 to add Heroicons components
# | from the list of .svg files in any of:
# |
possible_sources = [
# As introduced in =1.7.1
"priv/hero_icons/optimized/20/solid",
# Since >=1.7.2 with a maybe variant
"assets/vendor/hero_icons/optimized/20/solid/",
"assets/vendor/heroicons/optimized/20/solid/"