Skip to content

Instantly share code, notes, and snippets.

View TheSainEyereg's full-sized avatar
⚠️
undefined

Oleg Logvinov TheSainEyereg

⚠️
undefined
View GitHub Profile
@TheSainEyereg
TheSainEyereg / PhysX-Linux-Nvidia.md
Last active November 12, 2025 03:30
Mirror's Edge GPU hardware accelerated NVIDIA PhysX for Linux

Fix for PhysX

  1. Download nvidia-libs
  2. Unpack it and run PROTON_LIBS=/path/to/proton ./proton_setup.sh
    i.e. PROTON_LIBS=/home/oleg/.local/share/Steam/compatibilitytools.d/GE-Proton10-25 ./proton_setup.sh
  3. Re-create game's prefix (delete steamfolder/steamapps/compatdata/17410)
  4. Launch the game, so new prefix is created
  5. Download PhysX System Software
  6. Install it via protontricks-launch --appid 17410 ./PhysX_9.23.1019_SystemSoftware.exe
  7. Open game's files location, navigate to Binaries folder and REMOVE PhysXLocal directory, PhysXCore.dll and PhysXDevice.dll
@TheSainEyereg
TheSainEyereg / pterodactyl-upnp.md
Last active September 23, 2025 09:49
Bash script for opening assigned Pterodactyl/Pelican allocation ports via UPnP

Bash script for opening assigned Pterodactyl/Pelican allocation ports via UPnP

Requirements

  • Application API key with read acces to allocations
  • Node ID

How to

  1. Place pterodactyl-upnp.sh file to the same system Wings is running on
  2. Edit the PANEL_URL, API_KEY, NODE_ID variables, as well as additional ones if necessary.
  3. chmod +x pterodactyl-upnp.sh
@TheSainEyereg
TheSainEyereg / Private GitHub Packages.md
Created March 12, 2025 10:35
Using private packages from GitHub Packages

Using private packages from GitHub Packages

  1. Generate personal token with read:packages permission
  2. Login to GitHub Packages registry
npm login --scope=@YourOrg --registry=https://npm.pkg.github.com
  1. Enter your GitHub username in lower case as Username and personal token as Password.
  2. Now you can simply install any private package from the @YourOrg scope like:
@TheSainEyereg
TheSainEyereg / discord.md
Last active March 11, 2025 16:57
Discord updating scripts

Discord updater

Scripts for updating and starting discord in "1 click"

  • Vencord installer included

Keybase proof

I hereby claim:

  • I am thesaineyereg on github.
  • I am olejka (https://keybase.io/olejka) on keybase.
  • I have a public key ASBbc6MhBqq67IqGAWUaMtXk7SY2VmTXzSJROcGTprqsbQo

To claim this, I am signing this object:

@TheSainEyereg
TheSainEyereg / AimLogger.js
Created January 10, 2021 15:17
Discord Animated status aim logger messages.
let due_to = [
'spread',
'occlusion',
'resolver',
'fakelag',
'desync',
'bad cfg',
// 'pasted code',
// 'urbanichka'
]
@TheSainEyereg
TheSainEyereg / Cursor.js
Last active January 10, 2021 14:53
Discord Animated status terminal cursor.
let string = 'root@olejka.ru $ '
let even = () => {
let d = new Date();
return d.getSeconds()%2==0
}
if (even()) {string+='▌'}
new String(string)
@TheSainEyereg
TheSainEyereg / Countdown.js
Last active December 30, 2020 22:16
Discord Animated status new year countdown.
let date = '2021';
let gmt = 0; //Default GMT is 0
let timeLeft = (endtime) => {
let t = Date.parse(endtime) - Date.parse(new Date())-(gmt*1000*60*60);
let seconds = Math.floor( (t/1000) % 60 );
let minutes = Math.floor( (t/1000/60) % 60 );
let hours = Math.floor( (t/(1000*60*60)) % 24 );
let days = Math.floor( t/(1000*60*60*24) );
return {
@TheSainEyereg
TheSainEyereg / debug.js
Last active December 19, 2020 19:05
Javascript debug system
//----------------------------------Sett----------------------------------\\
const info = {
build: "Beta191220",
version: 1
}
const debug_default = "0"; //Not true or false because localStorage cannot store boolean values
const debug_time = true;
//----------------------------------Core----------------------------------\\