Skip to content

Instantly share code, notes, and snippets.

View nqxcode's full-sized avatar
:octocat:
Working...

Andrey Pokoev nqxcode

:octocat:
Working...
  • Tula
View GitHub Profile
@nqxcode
nqxcode / openvpn3-autoload.md
Last active July 1, 2024 14:41
Openvpn3 autoload
  1. Create openvpn3 autoload config file
mkdir -p $HOME/.openvpn3/autoload/

touch $HOME/.openvpn3/autoload/x5.autoload

vim $HOME/.openvpn3/autoload/x5.autoload
@nqxcode
nqxcode / DVRIP-Sonia Reference Codes.md
Created September 13, 2022 12:42 — forked from ekwoodrich/DVRIP-Sonia Reference Codes.md
Reference codes for the DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

DVRIP/Sonia Protocol

DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

1. Response Codes

Return code Definition
100 Success
101 Unknown error
102 Version not supported
103 Illegal request
@nqxcode
nqxcode / tor.htm
Created May 7, 2021 12:24
Tor tab for openwrt (luci integration)
-- /usr/lib/lua/luci/view/tor.htm
<%+header%>
<div>
<h2 name="content"><%:Tor%></h2>
<div id="view">
<div>
<div class="tor_status_wrapper">
<span>Состояние соединения</span>: <span id="tor_status" class="tor_status"></span><span id="tor_status_spinner"
@nqxcode
nqxcode / wget.sh
Last active August 6, 2021 20:07
Download an entire website with wget, along with assets.
wget \
--recursive \
--convert-links \
--level=inf \
--page-requisites \
--adjust-extension \
--no-clobber \
--restrict-file-names=windows \
--span-hosts \
--domains online.rehabscience.ru,getcourse.ru \
@nqxcode
nqxcode / migration-of-linux-system-to-another-disk.md
Created December 22, 2020 22:29
Migration of linux system to another disk

Migration of linux system to another disk.

Case for disk with MBR.

1. Copy source disk partitions / and /home to another disk.

# mkdir /mnt/sdb1
# mount /dev/sdb1 /mnt/sdb1
# cd /
@nqxcode
nqxcode / socks-tunnel
Last active September 12, 2022 18:52
Socks tunnel service for OpenWrt 19.07.2
/root/bin/socks_tunnel
#!/bin/bash
trap "stop" SIGTERM SIGINT
if [[ -z $1 ]]; then
echo 'Please, specify server...'
exit 1
fi
@nqxcode
nqxcode / socks_tunnel
Last active April 22, 2020 23:29
OpenWrt 19.07.2 daemon to create socks tunnels via ssh
#!/bin/bash
# /root/bin/socks_tunnel
trap "stop" SIGTERM SIGINT
if [[ -z $1 ]]; then
echo 'Please, specify server...'
exit 1
fi
@nqxcode
nqxcode / vino-server.sh
Created March 27, 2020 10:02 — forked from ralic/vino-server.sh
vino-server start/stop/status script , run it under the logged-in user
#!/bin/bash
### BEGIN INIT INFO
# Provides: vino-server
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Should-Start:
# Should-Stop:
# X-Start-Before:
# X-Stop-After:
@nqxcode
nqxcode / vncserverd.service
Last active March 27, 2020 07:54
Пример сервиса systemd
[Unit]
Description=Start vnc server at startup
After=network.target
[Service]
Type=forking
User=diol
Group=diol
OOMScoreAdjust=-500
WorkingDirectory=/home/diol