Skip to content

Instantly share code, notes, and snippets.

@jovannic
jovannic / weld_truth.md
Last active July 5, 2024 21:19
The Truth About Welds

Since we don't have this documented anywhere, I'll explain real quick.

The Truth About Welds

Weld, Snap, WeldConstraint, Motor, and Motor6D joints all combine multiple parts into the same Assembly. An assembly is a rigid body if none of it's parts are anchored. No physical forces can ever separate the parts of an Assembly or move them relative to each other unless the joints are removed or updated. They're a single body.

Every Assembly has a root part, see BasePart:GetRootPart. When a weld is C0/C1 is modified the root part will stay where it was.

Welds do not have any directionality. Part0 or Part1, doesn't matter. You can imagine rigid joints forming a tree branching down from the root part. All the parts down the tree from root will move, and their welded "children" in this tree will move with them.

@almorel
almorel / ffmpeg_h265.sh
Created August 4, 2017 12:45
ffmpeg - Encode DVD HVEC H265
ffmpeg -i concat:VTS_06_1.VOB\|VTS_06_2.VOB\|VTS_06_3.VOB\|VTS_06_4.VOB\|VTS_06_5.VOB\|VTS_06_6.VOB \
-vsync 1 \
-threads 0 \
-aspect 16:9 \
-map 0:v \
-map 0:3 \
-metadata title="TEST" \
-c:v libx265 \
-preset ultrafast \
-x265-params \
@wilhelmy
wilhelmy / dirlist.xslt
Last active June 5, 2023 10:44
make nginx dirlistings look like lighttpd's through the magic of xslt-transforming xml dirlistings. I don't even.
<?xml version="1.0"?>
<!--
dirlist.xslt - transform nginx's into lighttpd look-alike dirlistings
I'm currently switching over completely from lighttpd to nginx. If you come
up with a prettier stylesheet or other improvements, please tell me :)
-->
<!--
Copyright (c) 2016 by Moritz Wilhelmy <mw@barfooze.de>
@pisculichi
pisculichi / radios_nacionales.txt
Last active July 18, 2024 03:01
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://cdn.instream.audio:9288/stream Radio Madre 530
https://streaming1.hostingmontevideo.com:7019/; Radio Colonia 550
http://server.laradio.online:25224/live.mp3 Radio Argentina 570
http://playerservices.streamtheworld.com/api/livestream-redirect/CONTINENTAL_SC Continental 590
https://streammax.alsolnet.com/radiorivadavia Rivadavia 630
@jovannic
jovannic / gist:9239591
Last active June 7, 2021 03:59
sh2csh.sed
#!/bin/sed
# i can do 90% of the csh conversion work in batch, automagically!
# ...he said, 3 hours ago.
# ...but f*** all, it works! (does all my conversion, besides functions)
# change the shell to csh
1s|#!.*|#!/bin/csh -f|
# change if/while brackets
/^\s*\(if\|elif\|while\) / {
s/elif \[ /else if ( /