Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Andrii Korzh korzhyk

🏠
Working from home
  • Rivne, Ukraine
Block or report user

Report or block korzhyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@korzhyk
korzhyk / bootstrapAdGuard.service
Last active Apr 10, 2020
AdGuardHome startup script
View bootstrapAdGuard.service
[Unit]
DefaultDependencies=no
Description=Boostrap AdGuard Home service
Before=AdGuardHome.service
[Service]
Type=oneshot
ExecStart=/home/pi/startAdGuard.sh
TimeoutSec=0
RemainAfterExit=yes
@korzhyk
korzhyk / run.sh
Created Oct 22, 2019
macOS allow HiDPI on non Apple certificated displays
View run.sh
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
@korzhyk
korzhyk / DontShowUI.reg
Last active Sep 30, 2018
DayZ Standalone server startup script
View DontShowUI.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting]
"DontShowUI"=dword:00000001
@korzhyk
korzhyk / README.md
Created Aug 27, 2018
Raspberry Pi3 Shutdown button with LED indicator
View README.md

Installation

  1. Put shutdown_button.py to /usr/local/bin/
  2. Put shutdown_button.service to /etc/systemd/system/
  3. Enable service systemctl enable shutdown_button.service
  4. Start service systemctl start shutdown_button.service
  5. Enjoy!

Misc

@korzhyk
korzhyk / 30-routes.sh
Last active May 16, 2020
OpenWRT using WireGuard VPN tunnel for banned networks.
View 30-routes.sh
#!/bin/sh
apply_table() {
local rule="$1"
local target
config_get target "$rule" target
if [ "$target" = "MARK" ]; then
local name
@korzhyk
korzhyk / 50-netassist.sh
Last active Dec 19, 2019
NetAssist :: IPv6 Tunnel Broker auto update client IPv4 on OpenWRT
View 50-netassist.sh
#!/bin/sh
update_tunnel_broker() {
local cfg="$1"
local reported_ip_file="/tmp/netassist_last_ip"
local reported_ip=`cat $reported_ip_file 2> /dev/null`
local wan_ip
local username
local password
local proto
@korzhyk
korzhyk / bash.sh
Created Mar 8, 2018
Allow cap traffic without root previleges
View bash.sh
sudo setcap cap_net_raw,cap_net_admin=eip /path/to/execute/binary
@korzhyk
korzhyk / nginx.conf
Last active Mar 9, 2017
nginx rtmp config for streamers
View nginx.conf
user www-data;
group www-data;
worker_processes 1;
events {
worker_connections 512;
}
http {
@korzhyk
korzhyk / Online Torrent.bat
Created Feb 9, 2017
Simple batch file for peerflix
View Online Torrent.bat
@ECHO off
SET link=%1
if '%link%'=='' (
ECHO Please enter magnet or torrent file link:
set /p link=
)
START /B peerflix %link% -r -f Z:\TEMP --mpchc
@korzhyk
korzhyk / tl-wr1043nd.md
Last active Jun 20, 2018
Unbrick TL-WR1043ND
View tl-wr1043nd.md

###1. Connect RS232 serial (USB)

###2. Install OSX drivers NoZAP Drivers

###3. Configure tftp server Ubuntu:

# apt-get install dnsmasq
# /etc/init.d/dnsmasq stop          # Debian automatically starts it as a daemon, so I stop it
You can’t perform that action at this time.