Skip to content

Instantly share code, notes, and snippets.

View korzhyk's full-sized avatar
💥

Andrii Korzh korzhyk

💥
View GitHub Profile
@korzhyk
korzhyk / File_DXE_driver_Setup_1.18.0.ffs.0.0.en-US.ifr.txt
Created August 23, 2023 15:08
DELL OptiPlex 5060 MFF BIOS Setup section dumped&extracted
This file has been truncated, but you can view the full file.
Program version: 1.5.1, Extraction mode: UEFI
FormSet Guid: 7B59104A-C00D-4158-87FF-F04D6396A915, Title: "Setup", Help: "Setup"
Guid Guid: 0F0B1735-87A0-4193-B266-538C38AF48CE, ExtendedOpCode: Class, Class: 0x1
Guid Guid: 0F0B1735-87A0-4193-B266-538C38AF48CE, ExtendedOpCode: SubClass, SubClass: 0x0
DefaultStore DefaultId: 0x0, Name: ""
DefaultStore DefaultId: 0x1, Name: ""
VarStore Guid: EC87D643-EBA4-4BB5-A1E5-3F3E36B20DA9, VarStoreId: 0x1, Size: 0x1949, Name: "Setup"
VarStore Guid: 8BE4DF61-93CA-11D2-AA0D-00E098032B8C, VarStoreId: 0x2, Size: 0x2, Name: "PlatformLang"
VarStore Guid: 8BE4DF61-93CA-11D2-AA0D-00E098032B8C, VarStoreId: 0x3, Size: 0x2, Name: "PlatformLangCodes"
VarStore Guid: E770BB69-BCB4-4D04-9E97-23FF9456FEAC, VarStoreId: 0x4, Size: 0x1, Name: "SystemAccess"
@korzhyk
korzhyk / DontShowUI.reg
Last active January 11, 2021 20:33
DayZ Standalone server startup script
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting]
"DontShowUI"=dword:00000001
@korzhyk
korzhyk / 50-tun-routes
Last active November 3, 2022 17:21
OpenWRT using WireGuard VPN tunnel for banned networks.
#!/bin/sh
REPO_URL=https://zaborona.help/ips.txt
log() {
logger -t ipset "$1"
}
apply_table() {
local ipset
local target
@korzhyk
korzhyk / 30-netassist
Last active August 7, 2024 18:23
NetAssist :: IPv6 Tunnel Broker auto update client IPv4 on OpenWRT
#!/bin/sh
update_tunnel_broker() {
local wan_ip
local username
local password
local proto
local tunnelid
config_get proto $1 proto
config_get tunnelid $1 tunnelid
@korzhyk
korzhyk / bash.sh
Created March 8, 2018 14:04
Allow cap traffic without root previleges
sudo setcap cap_net_raw,cap_net_admin=eip /path/to/execute/binary
@korzhyk
korzhyk / nginx.conf
Last active March 9, 2017 19:18
nginx rtmp config for streamers
user www-data;
group www-data;
worker_processes 1;
events {
worker_connections 512;
}
http {
@korzhyk
korzhyk / tl-wr1043nd.md
Last active June 20, 2018 20:56
Unbrick TL-WR1043ND

###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
@korzhyk
korzhyk / Google Drive Spreadsheet UAH rates PrivatBank
Created February 23, 2014 19:37
Get fresh currency rates from PrivatBank
=VALUE(SUBSTITUTE(IMPORTXML("https://api.privatbank.ua/p24api/pubinfo?exchange&coursid=5"; "//exchangerate[@ccy='USD']/@sale"); "."; ","))
@korzhyk
korzhyk / crop.js
Created February 1, 2014 19:48 — forked from arian/crop.js
var spawn = require('child_process').spawn;
var Stream = require('stream');
/**
* crops and resizes images to our desired size
* @param {Stream} streamIn in stream containing the raw image
* @return {Stream}
*/
exports.cropImage = function(streamIn){