Skip to content

Instantly share code, notes, and snippets.

View uygary's full-sized avatar
💸
That's why we have to destroy the present politico-economic system.

Uygar Yilmaz uygary

💸
That's why we have to destroy the present politico-economic system.
View GitHub Profile
@uygary
uygary / setup_monogame_fx_pipeline.sh
Created January 30, 2026 19:03
MonoGame Build Pipeline Shader Support Setup
# Hopefully this will become redundant once the shader support in the native Vulkan back-end is revamped post 3.8.5
sudo apt update \
&& sudo apt dist-upgrade \
&& sudo apt autoremove \
&& sudo apt autoclean \
&& sudo dpkg --add-architecture i386 \
&& sudo apt install dotnet-sdk-10.0 dotnet-sdk-9.0 dotnet-sdk-8.0 \
dotnet-runtime-10.0 dotnet-runtime-9.0 dotnet-runtime-8.0 \
wine wine64 wine32:i386 winetricks
# winetricks latest version check update disabled in the Debian package for privacy reasons.
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386 libstdc++6:i386
@uygary
uygary / install_btop_in_opnsense.txt
Created January 6, 2025 20:42
Installing btop in OPNSense from Ports
# To Install:
sudo pkg install gmake
opnsense-code tools ports src
cd /usr/ports/sysutils/btop
sudo make install
# To Check for Update
pkg version -l "<"
# To Update
@uygary
uygary / install_duf_in_opnsense.txt
Created December 5, 2024 18:39
Installing duf in OPNSense from Ports
# To Install:
opnsense-code tools ports src
cd /usr/ports/sysutils/duf
make install
# To Check for Update
pkg version -l "<"
# To Update
opnsense-code tools ports src
@uygary
uygary / install_htop_in_opnsense.txt
Last active December 5, 2024 18:22
Installing htop in OPNSense from Ports
# To Install:
opnsense-code tools ports src
cd /usr/ports/sysutils/htop
make install
# To Check for Update
pkg version -l "<"
# To Update
opnsense-code tools ports src
@uygary
uygary / allow_unsupported_sfp.txt
Last active November 22, 2024 17:41
Disable SFP+ Brand Lockdown on Stupid Intel Converged Network Cards
# Assuming a dual port network adapter on Truenas Scale
sudo midclt call system.advanced.update '{"kernel_extra_options": "ixgbe.allow_unsupported_sfp=1,1"}'

Keybase proof

I hereby claim:

  • I am uygary on github.
  • I am malmoth (https://keybase.io/malmoth) on keybase.
  • I have a public key ASC8Jbw_jJyylTS5E4EYIXxFJ9S2KXINQ_5U3qxMPkFxswo

To claim this, I am signing this object:

@uygary
uygary / EnableSqlServerMessageBrokerAfterFuckup.sql
Created August 29, 2018 16:55
After a half-ass migration, we forgot to turn on service broker, and this little puppy was what we used to diagnose the prooblem and fix it.
use FooBar;
go
select sq.* from sys.service_queues as sq
select tq.* from sys.transmission_queue as tq
alter database FooBar set restricted_user with rollback immediate
alter database FooBar set enable_broker