文件存于~/.ssh/
下
Host xx
HostName xxx.xxx.com
User xx
Port 22
IdentityFile ~/.ssh/id_rsa
#!/bin/bash | |
DATE=`date '+%F'` #获取当前日期 | |
DEL-DATE="30" #自动删除30天以前的备份 | |
BACKUP_DIR="./share/spigot_backup" #备份目录 | |
tar -zcvf "$DATE-spigot.tar.gz" ~/spigot | |
if [ ! -d "$BACKUP_DIR" ]; then | |
mkdir "$BACKUP_DIR" | |
fi |
#!/bin/bash | |
# Set the count of space to 2 | |
SPACES=" " | |
if [ "$1" == "--help" ]||[ "$1" == "-h" ]||[ -z "$1" ]; then | |
echo "Function: Transform tabs to spaces." | |
echo "Usage: tab2space [file]" | |
exit 1 | |
fi |
文件存于~/.ssh/
下
Host xx
HostName xxx.xxx.com
User xx
Port 22
IdentityFile ~/.ssh/id_rsa
Debian does not come with 'bash-completion' installed and enabled.
To fix this, run (as root):
apt-get install bash-completion
Then, you have two options. You can either (1) enable it on a per-user basis for yourself, or (2) enable it globally.
If you want to enable it for just your user, edit ~/.bash_profile and ~/.bashrc - add the following:
#!/bin/bash | |
l=$1 | |
[ "$l" == "" ] && l=16 | |
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs |
# 这个脚本可以用来把ASS格式的字幕和logo一起压制到视频里。依赖于ffmpeg和zenity | |
# 由于使用命令行输入路径的话参数太多,不方便记忆(我自己都记不住),所以使用zenity图形界面来操作,对新手更友好 | |
# logo建议使用png格式,使用透明背景,并且请裁剪成正方形,否则大概会变形 | |
# 设置logo大小指的是logo水印在视频中的大小,默认为200x200的正方形,如果需要压制长方形logo请自行修改源码 | |
#!/bin/bash | |
TOP_LEFT="10:10" | |
TOP_RIGHT="main_w-overlay_w-10:10" | |
BUTTOM_LEFT="10:main_h-overlay_h-10" |
#!/bin/bash | |
VIDEO=$1 | |
ASS=$2 | |
OUTPUT=$3 | |
help(){ | |
echo "Usage: burn_ass.sh <video> <ass sub> <output>" | |
} |
@echo off | |
:: This is help menu | |
if "%1"=="/h" (goto help) | |
if "%1"=="/help" (goto help) | |
if "%1"=="/?" (goto help) | |
if "%1"=="-h" (goto help) | |
if "%1"=="--help" (goto help) | |
if "%1"=="" (goto help) |
#!/bin/bash | |
VIDEO=$1 | |
AUDIO=$2 | |
OUTPUT=$3 | |
help(){ | |
echo "Usage: burn_ass.sh <video> <ass sub> <output>" | |
} |
After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:
Basically it uses the steps from the first article, but under the background
path from the second article.
Neither article on its own worked for me.
Steps: