Skip to content

Instantly share code, notes, and snippets.

@plembo
plembo / steamubu2204nvidia.md
Last active July 7, 2024 22:02
Steam on Ubuntu 22.04 LTS Desktop with an NVIDIA RX3050

Steam on Ubuntu 22.04 LTS Desktop with an NVIDIA RX3050

Note the detailed heading. The subtitle should be "It's a miracle I got it to work at all". What follows are notes that I hope will help the next time I have to set this up, although I know they probably won't. They probably won't work for you either. Sorry.

Prerequisites

Make sure you're in an xorg, not wayland, session.

  1. Remove any existing nvidia packages:
  • sudo apt autoremove nvidia* --purge and/or
  • sudo /usr/bin/nvidia-uninstall
@schmich
schmich / config.bat
Last active July 5, 2023 03:36
Forward external connections to Docker on Windows
REM In admin prompt
REM Ensure web server/application is listening on all interfaces (0.0.0.0)
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=80 connectaddress=10.0.75.2 connectport=80
netsh advfirewall firewall add rule name="App" dir=in action=allow protocol=TCP localport=80 remoteport=80
netsh interface portproxy show v4tov4
netsh advfirewall firewall show rule "App"
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=80
netsh advfirewall firewall del rule name="App"
@maxsbelt
maxsbelt / gist:4476270
Last active February 28, 2025 04:15
BITRIX: Описание возможностей CMS 1C-Bitrix для создания файла описания параметров модуля options.php.
<?
$MODULE_ID = "Идентификатор модуля".
// -------------- СОХРАНЕНИЕ --------------
// ПО ОТДЕЛЬНОСТИ
foreach($arOptions as $arOption) {
__AdmSettingsSaveOption($MODULE_ID, $arOption);
}