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 / 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 / 50-unblock
Last active Aug 11, 2018
OpenWRT using VPN server for banned networks.
View 50-unblock
#!/bin/sh
start() {
local tun=`ifconfig | grep tun | awk '{print $1}'`
wget -qO- "https://zaborona.help/ips.txt" | while read net; do
if [ "${net:0:1}" = "#" ] || [ "$net" == "" ]; then
continue
fi
logger -t unBlock "unlocking $net"
@korzhyk
korzhyk / domains.txt
Last active Aug 10, 2018
List of some banned domains by Ukrainian government
View domains.txt
# This one is for testing purposes only
2ip.ru
vk.com
queuev4.vk.com
login.vk.com
# All VKs storage nodes
pp.userapi.com
sun1-1.userapi.com
sun1-2.userapi.com
@korzhyk
korzhyk / 50-netassist.sh
Last active Sep 20, 2018
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 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 / run.sh
Created Mar 7, 2018
OpenWRT tee all traffic to another machine
View run.sh
opkg install iptables-mod-tee
iptables -A POSTROUTING -t mangle -o br-lan ! -s SOURCE_IP -p udp -j TEE --gateway DESTINATION_IP
iptables -A PREROUTING -t mangle -i br-lan ! -d SOURCE_IP -p udp -j TEE --gateway DESTINATION_IP
@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 {
View AppleHDAEngineOutput.log
AppleHDAEngineOutput@1B,2,1,2 <class AppleHDAEngineOutput, id 0x100000541, registered, matched, active, busy 0 (1 ms), retain 34>
AppleHDAEngineOutput@1B,2,1,3 <class AppleHDAEngineOutput, id 0x10000054d, registered, matched, active, busy 0 (1 ms), retain 33>
AppleHDAEngineOutput@1B,2,1,4 <class AppleHDAEngineOutput, id 0x100000558, registered, matched, active, busy 0 (1 ms), retain 33>
AppleHDAEngineOutput@1B,2,1,5 <class AppleHDAEngineOutput, id 0x100000566, registered, matched, active, busy 0 (3 ms), retain 23>
@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
You can’t perform that action at this time.