View elapsed_time.sh
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 | |
SECONDS=0 | |
echo 'Time Start:' $(date '+%Y-%m-%d %H:%M:%S') | |
# code... | |
echo 'Time End:' $(date '+%Y-%m-%d %H:%M:%S') | |
eval "echo Time Elapsed: $(date -ud "@$SECONDS" +'$((%s/3600/24)) days %H hours %M minutes %S seconds')" |
View wire_guard_vpn.sh
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 | |
# https://www.thomas-krenn.com/en/wiki/Ubuntu_Desktop_as_WireGuard_VPN_client_configuration | |
# installation | |
sudo add-apt-repository ppa:wireguard/wireguard | |
sudo apt update | |
sudo apt install wireguard | |
# configuration |
View php_oracle_oci8_ubuntu.sh
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 | |
# Download from https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html | |
# instantclient-basic-linux.x64-12.2.0.1.0.zip | |
# instantclient-sdk-linux.x64-12.2.0.1.0.zip | |
# Setup instantclient | |
mkdir -p /opt/oracle | |
unzip /tmp/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle | |
unzip /tmp/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle |
View gedit-themes.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright (c) 2016 Mural Dark | |
Contacts: valera.padolochniy@gmail.com | |
--> | |
<style-scheme id="mural dark" _name="Mural Dark" version="1.0"> | |
<author>Valera Padolochniy</author> | |
<_description>Dark color palette</_description> |
View sendmail_mailtrap.info
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 -s | |
cd /etc/mail | |
mkdir /etc/mail/auth | |
cd /etc/mail/auth | |
echo 'AuthInfo: "U:root" "I:mailtrap-username" "P:mailtrap-password"' > mailtrap-info | |
makemap -r hash mailtrap-info.db < mailtrap-info | |
cd .. [cd /etc/mail] | |
cp sendmail.mc sendmail-mailtrap.mc |
View nginx_modsite.sh
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 | |
# | |
# nginx-modsite | |
# (c) valera.padolochniy@gmail.com | |
# This script is released under the MIT License (MIT) | |
# | |
# DESCRIPTION | |
# NGINX sites manager. | |
# | |
# INSTALL & USAGE (for Linux) |
View opc_vpn.sh
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 | |
# openconnect shell script | |
# vpn settings | |
HOST="test-vpn.com" | |
USER="test" | |
PASSWORD="test" | |
case "$1" in | |
--help) |