Skip to content

Instantly share code, notes, and snippets.

@thayol
thayol / gltf_import_fix.gd
Created May 15, 2024 06:33
Godot glTF import script: extra root node fix (reparent/remove)
@tool
extends EditorScenePostImport
func _post_import(scene):
var fake_root = scene.get_child(0) # glTF's root "scene" node
# Remove the wrongly imported fake root node
reparent_children(fake_root, scene)
fake_root.queue_free()
@thayol
thayol / prompt.ps1
Last active February 17, 2022 11:13 — forked from NithinChintala/prompt.ps1
A PowerShell Prompt that matches Thayol's UNIX prompts
# ===Color Abbreviation===
# x = reset
# k = blacK r = Red
# g = Green y = Yellow
# b = Blue m = Magenta
# c = Cyan w = White
function prompt {
$esc = [char]0x1b
$x = "$esc[0m"
$k = "$esc[90m"
///// TODO : Replace <<LAN_INTERFACE>> with internal bridge or lan interface, replace <<<PPPOE_DIGI_INTERFACE>>> with the pppoe-digi interface
/ipv6 nd
set [ find default=yes ] disabled=yes
add advertise-dns=yes interface=<<LAN_INTERFACE>>
/ipv6 dhcp-client
add add-default-route=yes interface=<<<PPPOE_DIGI_INTERFACE>>> pool-name=pool6 request=address,prefix script=":del\
ay 5s;\
\n/ipv6 address remove [find advertise=yes]\