Skip to content

Instantly share code, notes, and snippets.

View myagizmaktav's full-sized avatar

Mehmet Yağız Maktav myagizmaktav

View GitHub Profile
@myagizmaktav
myagizmaktav / rdpmicrophone.md
Created February 14, 2026 00:38
RDP Microphone Not Working on Windows Server 2022 VPS

Fix: RDP Microphone Not Working on Windows Server 2022 VPS

The Problem

When connecting to a Windows Server 2022 VPS via Remote Desktop (RDP), the microphone (audio input) is not redirected to the remote session. The Sound settings on the VPS show:

  • Output device: "Remote Audio" — works fine
  • Input device: "No input devices found" — broken

The Recording Audio troubleshooter says: "This troubleshooter can't run in a Remote Desktop session."

@myagizmaktav
myagizmaktav / Wireguardrdp.md
Created February 11, 2026 13:25
Wireguard rdp

WireGuard Full Tunnel VPN on Windows VDS Without Losing RDP

The Problem

When you activate a WireGuard VPN with AllowedIPs = 0.0.0.0/0 (full tunnel) on a remote Windows Server (VDS) that you access via RDP, your RDP connection immediately drops.

This happens because WireGuard's kill switch (WFP firewall rules) blocks ALL traffic on the physical network interface — including your RDP return traffic to your home PC. Only traffic to the WireGuard server endpoint is permitted.

The Solution

@myagizmaktav
myagizmaktav / Best_until_next_1.pwss
Last active August 1, 2025 15:12
Anycubic photon workshop script
{
"current_param": [
],
"default_param": [
[
{
"property": {
"support_name": "Best_until_next_1"
}
},
@myagizmaktav
myagizmaktav / atheoscompose.md
Last active May 16, 2025 09:47
Atheos Docker compose example

Atheos Docker Setup with Traefik

This document describes how to set up the Atheos IDE using Docker Compose, configured to work behind a Traefik reverse proxy.

Prerequisites

  1. Docker and Docker Compose: Ensure Docker and Docker Compose are installed on your host machine.
  2. Traefik: A running Traefik instance is required. This setup assumes:
    • Traefik is connected to an external Docker network named network.
    • You have a certificate resolver configured named myresolver (though TLS is currently disabled in the labels).
root@server159616:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
@myagizmaktav
myagizmaktav / Convert to non english chars to english
Created January 15, 2024 02:38
Convert to non english chars to english
// https://byby.dev/js-slugify-string
function slugify(str) {
return String(str)
.normalize('NFKD') // split accented characters into their base characters and diacritical marks
.replace(/[\u0300-\u036f]/g, '') // remove all the accents, which happen to be all in the \u03xx UNICODE block.
.trim() // trim leading or trailing whitespace
.toLowerCase() // convert to lowercase
.replace(/[^a-z0-9 -]/g, '') // remove non-alphanumeric characters
.replace(/\s+/g, '-') // replace spaces with hyphens
@myagizmaktav
myagizmaktav / Supabase Local To Local Server Migration
Last active January 28, 2024 10:18
Supabase Local To Local Server Migration
DB URL: postgresql://postgres:postgres@127.0.0.1:54322/postgres
Local pc:
npx supabase migration new mig
supabe migration new mig
supabase db diff -f initial_migration
supabase db dump --db-url "$OLD_DB_URL" -f roles.sql --role-only
supabase db dump --db-url "$OLD_DB_URL" -f schema.sql
supabase db dump --db-url "$OLD_DB_URL" -f data.sql --use-copy --data-only
After created files transfer to server pc
@myagizmaktav
myagizmaktav / 2023 Raspberry os lite pi brodcast your screen with airplay on UxPlay #screenMirroring.txt
Last active September 10, 2023 15:22
2023 Raspberry os lite pi brodcast your screen with airplay on UxPlay #screenMirroring
First things first, if you want to make a hotspot using your Raspberry Pi, it will be better. To create a hotspot, select your country in `raspi-config -> System Options -> Wireless Lan` before starting. You can follow the instructions provided here: [Raspberry Pi Automatic Hotspot and Static Hotspot Installer](https://www.raspberryconnect.com/projects/65-raspberrypi-hotspot-accesspoints/183-raspberry-pi-automatic-hotspot-and-static-hotspot-installer).
You will need to install some libraries and credentials:
Install these libraries:
```bash
sudo apt-get install cmake libavahi-compat-libdnssd-dev libplist-dev libssl-dev \
@myagizmaktav
myagizmaktav / aurora source link list
Created January 22, 2023 12:46
Aurora source source link list.
@myagizmaktav
myagizmaktav / deep-merge.js
Created November 2, 2022 20:08 — forked from ahtcx/deep-merge.js
Deep-Merge JavaScript objects with ES6
// ⚠ IMPORTANT: this is old and doesn't work for many different edge cases but I'll keep it as-is for any of you want it
// ⚠ IMPORTANT: you can find more robust versions in the comments or use a library implementation such as lodash's `merge`
// Merge a `source` object to a `target` recursively
const merge = (target, source) => {
// Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties
for (const key of Object.keys(source)) {
if (source[key] instanceof Object) Object.assign(source[key], merge(target[key], source[key]))
}