Skip to content

Instantly share code, notes, and snippets.

View sudotman's full-sized avatar
🐈
rolling my boulder

Satyam Kashyap sudotman

🐈
rolling my boulder
  • Mumbai
  • 13:06 (UTC +05:30)
View GitHub Profile
@sudotman
sudotman / cat.gif
Created September 10, 2025 06:25 — forked from dumbmoron/cat.gif
cat.gif
@sudotman
sudotman / gist:6cab36a75daa0c08056660688dafdf96
Created June 10, 2025 07:08
unreal rpc replication cheatsheet
| Actor ownership | Not replicated | NetMulticast | Server | Client |
| ------------------ | -------------- | ------------------------------ | -------------- | ----------------------------- |
| Client-owned actor | Runs on server | Runs on server and all clients | Runs on server | Runs on actor's owning client |
| Server-owned actor | Runs on server | Runs on server and all clients | Runs on server | Runs on server |
| Unowned actor | Runs on server | Runs on server and all clients | Runs on server | Runs on server |
| Actor ownership | Not replicated | NetMulticast | Server | Client |
| --------------------------- | ----------------------- | ----------------------- | -------------- | ----------------------- |
@sudotman
sudotman / gist:c848eb1dacbe4e53dba69e3b67416596
Created April 7, 2025 09:24
fixing lfs (should have a pointer but doesnt) issue where you can't discard/restore/stash your changes
git lfs uninstall
git reset --hard
git lfs install
git lfs pull
In case if this is not working (because this was not working for me), the following hack may work:
git rm --cached -r .
git reset --hard
@sudotman
sudotman / file.cs
Created November 3, 2023 11:49
Unity - Create a file in a custom folder on the Desktop
if(!Directory.Exists(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "\\ISROResults"))
{
Directory.CreateDirectory(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "\\ISROResults");
File.Create(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "\\ISROResults\\results.txt");
}
File.WriteAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "\\ISROResults\\results.txt", "Test1");
@sudotman
sudotman / gist:372fddcb65c0be534f91d5c7da333bd0
Last active September 8, 2023 11:04
dummyTransferOrder
{
"Items": [
{
"toID": "129293",
"binID": "93582",
"materialID": "299534",
"materialText": "COMPRESSOR",
"batchID": "349ef",
"quantityRequired": "3"
},
@sudotman
sudotman / orin_min.js
Created January 20, 2023 12:02
original minified
/**
* [js-crc]{@link https://github.com/emn178/js-crc}
*
* @namespace crc
* @version 0.2.0
* @author Chen, Yi-Cyuan [[email protected]]
* @copyright Chen, Yi-Cyuan 2015-2017
* @license MIT
*/
!(function () {
@sudotman
sudotman / orig.js
Created January 20, 2023 12:02
original crc
/**
* [js-crc]{@link https://github.com/emn178/js-crc}
*
* @namespace crc
* @version 0.2.0
* @author Chen, Yi-Cyuan [[email protected]]
* @copyright Chen, Yi-Cyuan 2015-2017
* @license MIT
*/
/*jslint bitwise: true */
clBitCrack.exe -b 6 -t 32 -p 16 --keyspace 8000000000000000:ffffffffffffffff 16jY7qLJnxb7CHZyqBP8qca9d51gAjyXQN
@sudotman
sudotman / thankgod
Created July 27, 2021 18:57
thank god
if youre reading this, thank god you are here.
dont listen to...that thing.
press e and enter this as the code "1102e1904"
@sudotman
sudotman / gist:493688cc11ad730a54ba2bcfdbd4bc75
Last active June 24, 2021 06:07
Making a timelapse using ffmpeg and another video
ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" output.mkv
ffmpeg -i timelapse.mp4 -c copy in.264
ffmpeg -r 60 -i in.264 -c copy out.mp4
ffmpeg -i "concat:complicated.flac|blue.flac" merged.mp3