Skip to content

Instantly share code, notes, and snippets.

View khyoon's full-sized avatar
😄

khyoon khyoon

😄
View GitHub Profile
@khyoon
khyoon / README.md
Created August 26, 2025 16:44 — forked from qnts/README.md
D2R easier multiple clients

D2R easier multiple clients

Hey there, it seems Blizzard had fixed the issue with authentication on Asia server. You can use this tool as before. Have fun!

Load all d2r instances by the most simple method!

  • No need to replicate d2r folder for each account you have
  • Saving time
  • No launcher (battle.net app) required
@khyoon
khyoon / upnpPortMapper.sh
Created April 25, 2024 15:15 — forked from mvadu/upnpPortMapper.sh
THis script uses upnp client (upnpc) to talk to router and open ports
#!/bin/bash
#~/bin/upnpPortMapper.sh
#sudo apt-get install miniupnpc
#crontab -l | grep upnp || echo $(crontab -l ; echo '*/5 * * * * ~/bin/upnpPortMapper.sh >/dev/null 2>&1') | crontab -
export LC_ALL=C
router=$(ip r | grep default | cut -d " " -f 3)
gateway=$(upnpc -l | grep "desc: http://$router:[0-9]*/rootDesc.xml" | cut -d " " -f 3)
ip=$(upnpc -l | grep "Local LAN ip address" | cut -d: -f2)
@khyoon
khyoon / upnp-port-forwards
Created April 25, 2024 15:14 — forked from rkitover/upnp-port-forwards
script for forwarding ports using UPnP (run every hour)
#!/bin/sh
# Set up UPnP port forwards based on a table.
#
# See: upnpc --help
#
# cron installation:
#
# mkdir -p ~/.local/bin
# cp upnp-port-forwards ~/.local/bin
@khyoon
khyoon / enable_gdm_synergy_not_a_script.md
Created March 13, 2024 10:27 — forked from f1yn/enable_gdm_synergy_not_a_script.md
Enable Synergy (correctly) at login on any Linux using GDM3

These commands come AS IS, WITH NO WARRANTY. I AM NOT RESPONSIBLE IF YOU BORK YOUR SYSTEM

Synergy on Linux - It's great when it works, but it's also a pain because most guides are intended for Ubuntu 18, which is absolutely useless now. Here is how I was able to setup Synergy at login on a Pop_OS 22.04, but should ALSO work for ANY distribution using GDM3 as it's login manager (i.e Fedora and/or Ubuntu).

Step 1

Install synergy. Make sure that synergyc is installed first (included in deb or rpm)

Step 2

@khyoon
khyoon / DSM_6.2_API.json
Last active February 5, 2024 10:45 — forked from Rhilip/DSM_6.2_API.json
DSM API list
{
"data": {
"SYNO.API.Auth": {
"maxVersion": 6,
"minVersion": 1,
"path": "auth.cgi"
},
"SYNO.API.Encryption": {
"maxVersion": 1,
"minVersion": 1,
Title : "Vyos basic configuration"
Date : "25/07/2018"
Author : "Musha"
Reference : "http://soucy.org/vyos/UsingVyOSasaFirewall.pdf"
1) Configure network Interface eth0 (internet)
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'OUTSIDE'
2) Configure network interface eth1 (dmz)