This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Login as root | |
sudo su | |
#create jdk directory | |
mkdir /opt/jdk | |
#uncompress, change to your file name | |
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk | |
#check if files are there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## view connected disks (block volume). | |
lsblk | |
## format disk, change path if needed. | |
mkfs.xfs /dev/sdb | |
## prepare mounting folder. | |
mkdir -p /mnt/vol1 | |
## alter fstab config, it makes mounting consistent across reboots. | |
## don't forget to change mounting device and path. | |
## nofail option makes mounting soft, so, OS can run even mounting fails. | |
echo "/dev/sdb /mnt/vol1 xfs defaults,_netdev,nofail 0 2" >> /etc/fstab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd iflag=direct if=/dev/oracleoci/oraclevda of=/dev/null count=1 | |
echo "1" | sudo tee /sys/class/block/`readlink /dev/oracleoci/oraclevda | cut -d'/' -f 2`/device/rescan | |
# if growpart not found: | |
apt install cloud-utils | |
# or thiscloud-guest-utils | |
sudo growpart /dev/sda 1 | |
sudo resize2fs /dev/sda1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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:: |