Skip to content

Instantly share code, notes, and snippets.

View TornadoRadon's full-sized avatar
🤟
♪ busy ♫

Shakhzod Shukrulloev TornadoRadon

🤟
♪ busy ♫
View GitHub Profile
@TornadoRadon
TornadoRadon / default-nginx.conf
Created January 17, 2024 09:59 — forked from vladkras/default.conf
NGINX redirect to app store and google play based on user agent
location = /gotoapp {
if ($http_user_agent ~* "iphone|ipod|ipad|appletv") {
return 301 https://www.apple.com/lae/ios/app-store/;
}
if ($http_user_agent ~* "android") {
return 301 https://play.google.com/store;
}
if ($http_user_agent ~* "Windows") {
return 301 https://www.microsoft.com/store/apps?rtc=1;
@TornadoRadon
TornadoRadon / desktopswitcher-winwheel.ahk
Created December 22, 2023 05:34
Desktop Switch WinWheel
; Desktop Switch WinWheel by TornadoRadon
; October 14, 2023
#SingleInstance ; Allow only one instance of this script to be running.
Persistent
CoordMode "Mouse" , "Screen" ; Coordinates are relative to the desktop (entire screen).
#WheelUp::
@TornadoRadon
TornadoRadon / openvpn-installer.sh
Created December 19, 2023 15:05
OpenVPN Installer/Configurator to any Linux
#!/bin/bash
# shellcheck disable=SC1091,SC2164,SC2034,SC1072,SC1073,SC1009
# Secure OpenVPN server installer for Debian, Ubuntu, CentOS, Amazon Linux 2, Fedora, Oracle Linux 8, Arch Linux, Rocky Linux and AlmaLinux.
# https://github.com/angristan/openvpn-install
function isRoot() {
if [ "$EUID" -ne 0 ]; then
return 1
fi
@TornadoRadon
TornadoRadon / gist:95890ca5cb0099d2ddcf5dfc8e61868b
Created October 24, 2023 05:15
Install docker and docker-compose to Amazon Linux 2023
sudo yum install docker -y
sudo service docker start
sudo chkconfig docker on
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
@TornadoRadon
TornadoRadon / switchdesktopswithmousewheel.ahk
Last active October 14, 2023 08:55
Switch your Virtual Desktops with AutoHotKey 2 on Windows by Mouse Wheel when cursor on a corner.
; Desktop Switch Corner by TornadoRadon
; October 14, 2023
#SingleInstance ; Allow only one instance of this script to be running.
Persistent
CoordMode "Mouse" , "Screen" ; Coordinates are relative to the desktop (entire screen).
WheelUp::