OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24
Install aria2 package:
This is a docker-compose template for a lemp stack.
Make sure to change both the root password under the mysql service, and the absolute URI on the phpmyadmin container.
You can also expose phpMyAdmin locally instead of remotely by properly configuring the ports.
Default locations:
(Original) -> (Your server)
/var/www/html
-> ./webroot
/etc/nginx
-> ./nginx
#!/bin/bash | |
## Synopsis | |
# Reset the primary password on Dell PowerEdge or any device using iDRAC6 | |
## Usage | |
# sudo ./racadm-reset-pwd.sh YOURPASS | |
## NOTE | |
# Resource- http://www.remotecto.net/2010/10/19/changing-a-drac-password-on-the-command-line-with-racadm/ | |
sudo racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 $1 | |
echo "Plase take note of your password" |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases. | |
# Much of this was originally copied from: | |
# http://natelandau.com/my-mac-osx-bash_profile/ | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management |
#!/bin/bash | |
# | |
# Sync local directory to remote directory. | |
# | |
# Modified by: Leo Mao | |
# Modified from: https://gist.github.com/evgenius/6019316 | |
# | |
# Requires Linux, bash, inotifywait and rsync. | |
# | |
# To avoid executing the command multiple times when a sequence of |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
#!/bin/bash | |
# Colors | |
RED='\033[0;31m' | |
BLACK='\033[0;30m' | |
DARK_GRAY='\033[1;30m' | |
LIGHT_RED='\033[1;31m' | |
GREEN='\033[0;32m' | |
LIGHT_GREEN='\033[1;32m' | |
BROWN_ORANGE='\033[0;33m' |
#!/bin/bash | |
# change default shell to zsh (asks for password) | |
chsh -s /bin/zsh | |
# install xcode command line tools | |
xcode-select --install | |
# download my custom .zshrc | |
curl https://gist.githubusercontent.com/simonhaenisch/382eab0cfa3435dad7e177a49fe198fc/raw/.zshrc > ~/.zshrc |
#!/bin/bash | |
# SYPOPSIS: Rename files in folder to match folder. | |
# CREDIT: Unamed user on superuser or superadmin. If you find this, let me know and I will add you to the credits. | |
# UPCOMING: Allow for secondary input such as `rename-files-to-folder $MOVIENAME` so not to rename all movies in directory just one or two. | |
find * -type f -maxdepth 1 | while read file | |
do | |
dirname="$(dirname "$file")" | |
new_name="${dirname##*/}" | |
file_ext=${file##*.} |
#!/bin/bash | |
# Created by fibergames.net // Loranth Moroz // v.0.5 | |
# Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/) | |
# This only works for Digitalocean - 10$ credit referral link: https://m.do.co/c/fed75101475f | |
# Edit token, domain, subdomain to fit your needs | |
# Substitute ipinfo.io with your own ip-checker e.g. ipecho.net/plain | |
# This is to be used with crontab -> example entry to run it every 3hours: | |
# 0 */3 * * * sh /path/to/script/dnsupdater.sh | |
# Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh |