Skip to content

Instantly share code, notes, and snippets.

View otuva's full-sized avatar
💩

Onur Alp Akin otuva

💩
  • Arasaka Corporation
  • /home/otuva
View GitHub Profile
server {
listen 80;
server_name subdomain.example.com;
location / {
proxy_pass http://ip_addr;
include common.conf;
}
}
sudo iptables -I DOCKER ! -s ipyouwanttoallow -j DROP
sudo iptables -I DOCKER -s localipofyourcontainer -d 0.0.0.0/0 -j ACCEPT
sudo iptables -I DOCKER -m state --state ESTABLISHED,RELATED -j ACCEPT
{
"systemPrompt": "check and find relevant tools for you next task...",
"llm": {
"provider": "google_genai",
"model": "gemini-2.5-flash",
"api_key": "<APIKEY>",
"temperature": 0.7,
"base_url" : "https://us-central1-aiplatform.googleapis.com/v1"
},
"mcpServers": {
@otuva
otuva / dotnetfix.sh
Created March 26, 2025 18:24
.NET SDK was resolved to /usr/bin/snap, but it failed to run. It is possible the installation of the .NET is corrupted, or not properly signed, or has no permission to run.
sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet
@otuva
otuva / 99-logi-g29.rules
Created March 9, 2025 11:52
/usr/lib/udev/rules.d/99-logi-g29.rules
KERNEL=="event10", MODE="0666"
# JACK client config file for PipeWire version "1.2.4" #
#
# Copy and edit this file in /etc/pipewire for system-wide changes
# or in ~/.config/pipewire for local changes.
#
# It is also possible to place a file with an updated section in
# /etc/pipewire/jack.conf.d/ for system-wide changes or in
# ~/.config/pipewire/jack.conf.d/ for local changes.
#
opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade
% isim
% num
% Computer Engineering
% CEN103 Introduction to Programming
% Project 2
% 20-21 Autumn
% Deniz Dal
% while loops cuz we're waiting for user to type -1
PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NVAPI=1 mangohud gamemoderun %command% -vulkan -USEALLAVAILABLECORES -cpuLoadRebalancing -high -ignorepipelinecache
PROTON_ENABLE_NVAPI=1 mangohud gamemoderun %command% -ignorepipelinecache -vulkan
PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NVAPI=1 mangohud gamemoderun %command% -vulkan -USEALLAVAILABLECORES -cpuLoadRebalancing -high -ignorepipelinecache
PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NVAPI=1