Ubuntu和Debian系统 安装中文语言包

1.安装之前,执行

 echo $LANG

屏幕显示:en_US.UTF-8
说明现在是英语环境,需要切换到中文环境。

2、安装中文语言包,并重启

sudo apt-get update
sudo apt-get install language-pack-zh-hans
echo 'LANG="zh_CN.UTF-8" LANGUAGE="zh_CN:zh"' | sudo tee /etc/default/locale
sudo locale-gen zh_CN.UTF-8

sudo reboot

3、安装之后,执行检查

 echo $LANG

一键shell脚本上传本地文件到FTP服务器

 

注意:
1、windows本地编辑必须注意编码,建议使用Notepad++编辑。
2、脚本必须赋予755执行权限。
3、需要安装FTP
4、宝塔后台执行计划任务格式:/root/脚本名称.sh

yum install ftp
apt-get install ftp

自动上传脚本如下:

#!/bin/sh
#将/www/backup/site目录的所有文件上传到FTP服务器根目录
#这里FTP使用99端口,注意IP地址和端口号后面都有一个空格
#-p 是设置为被动FTP方式,否则会连不上服务器

ftp -p -v -n 5.5.5.5 99 <<EOF
user 80tm dsafdsafds
binary
hash
cd ./
lcd /www/backup/site
prompt
mput *
bye
#here document
EOF
echo “commit to ftp successfully”

命令解释
登录FTP
ftp -i -n 10.11.10.11 99 << EOF
<< 是使用即时文件重定向输入
EOF是即时文件的标志它必须成对出现,以标识即时文件的开始和结尾。
ftp常见的几个标志有:

-d:使用调试模式,但必须编辑 /etc/syslog.conf 文件并添加以下中的一项:user.info FileName 或 user.debug FileName。
-g:禁用文件名中的元字符拓展,即取消全局文件名。
-i :关闭多文件传输中的交互式提示。
-n:防止在起始连接中的自动登录。否则, ftp 命令会搜索 $HOME/.netrc 登录项,该登录项描述了远程主机的登录和初始化过程。
-v:显示远程服务器的全部响应,并提供数据传输的统计信息,即在程序运行时显示详细的处理信息。

输入FTP用户名和密码
user ftpuser ftppwd
ftpuser:登录FTP时的用户名
ftppwd:登录FTP时的密码

通过binary命令传输文件
binary
FTP文件传输类型有: ascii、binary、ebcdic、image、local M 和 tenex。

– ascii:将文件传输类型设置为网络 ASCII。此类型为缺省值,即默认使用ascii方式进行传输。
– binary:将文件传输类型设置为二进制映像。需要使用binary方式传输的文件类型有ISO文件、可执行文件、压缩文件、图片等。此类型可能比 ASCII 传送更有效。
– ebcdic:将文件传输类型设为 EBCDIC。
– image:将文件传输类型设置为二进制映像。此类型可能比 ASCII 传送更有效。
– local M:将文件传输类型设置为本地。M 参数定义每计算机字位的十进制数。此参数没有缺省值。
– tenex:将文件传输类型设为 TENEX 机器需要的类型。

切换散列符号 (#) 打印
hash
当用get或put命令传送一个数据块时,让FTP显示一个#,这是看得见的确定数据在传输的信号,在用户不确信网络是否工作时有用。当传输很大的文件时,如果FTP已显示这种信息,表示传输正在进行。hash命令是一个布尔变量式的命令,用hash命令打开显示#开关,再用hash命令关闭显示。

切换目录
分别在本地和FTP上进入对应文件夹下:
到FTP上对应路径(这里表示进入Dwon文件夹下):
cd ./Down

到本地的对应路径(这里表示在当前文件夹下):
lcd ./

切换交互式提示
prompt
使用mget或mput时,prompt命令让FTP在传输每个文件前进行提示,这样防止覆盖已有的文件。若发出prompt命令时已经启动了提示,FTP将把提示关掉,此时再传输所有的文件则不会有任何提问。

一键shell加密备份网站和数据库脚本

Linux服务器SSH挂断后继续后台运行命令

一键shell加密备份网站和数据库脚本1

 

注意:
1、windows本地编辑必须注意编码,建议使用Notepad++编辑
2、必须赋予755执行权限
3、宝塔异常进程监控会结束rm进程,建议关闭异常进程监控(宝塔系统加固),否则无法删除备份的数据库文件
4、建议在网站配置中禁止访问 /MySQL_bak 目录。
5、宝塔后台执行计划任务格式:/root/脚本名称.sh

空格字符转换


sudo apt-get install dos2unix # 如果尚未安装
dos2unix /root/beifen1688.sh

#!/bin/bash
# Author:Tespera
# Blog: https://www.80tm.com

## 备份配置信息 ##

# 备份名称,用于标记
BACKUP_NAME="www.80tm.com"
# 备份目录,多个请空格分隔
BACKUP_SRC="/home/www "
# Mysql主机地址
MYSQL_SERVER="127.0.0.1"
# Mysql用户名
MYSQL_USER="user"
# Mysql密码
MYSQL_PASS="password"
# Mysql备份数据库,多个请空格分隔
MYSQL_DBS="blog"
# 备份文件存放目录
BACKUP_DIR="/Data/Backup"
# 备份文件压缩密码
BACKUP_FILE_PASSWD="www.80tm.com"
# 备份文件保留天数
SAVE_DAYS="30"
## 备份配置信息 End ##



## 以下内容无需修改 ##

NOW=$(date +"%Y%m%d%H%M%S") #精确到秒,同一秒内上传的文件会被覆盖

mkdir -p $BACKUP_DIR
mkdir -p $BACKUP_SRC/MySQL_bak

# 备份 MySQL
echo -e "\nStart dump MySQL ..."
for db_name in $MYSQL_DBS; do
    if ! mysqldump --no-tablespaces -u $MYSQL_USER -h $MYSQL_SERVER -p"$MYSQL_PASS" "$db_name" > "$BACKUP_SRC/MySQL_bak/$BACKUP_NAME-$db_name-$NOW.sql"; then
        echo "MySQL dump failed for database $db_name" | tee -a $BACKUP_DIR/backup.log
        exit 1
    fi
done
echo "Dump MySQL OK !"

# 打包备份文件
echo -e "\nStart tar ..."
BACKUP_FILENAME="$BACKUP_NAME-backup-$NOW.zip"
zip -q -r -P $BACKUP_FILE_PASSWD $BACKUP_DIR/$BACKUP_FILENAME $BACKUP_SRC/MySQL_bak/*.sql $BACKUP_SRC
echo "tar OK ! "

# 清理临时备份文件
echo -e "\nStart clean temp file ..."
rm -rf $BACKUP_SRC/MySQL_bak/*.sql
echo "Clean temp file OK !"

# 清理过期备份文件
echo -e "\nStart clean outdated file ..."
find $BACKUP_DIR -type f -name "*zip" -mtime +$SAVE_DAYS -exec rm -rf {} \;
echo "Clean outdated file OK !"

# 写入日志
echo "$NOW  Backup $BACKUP_SRC successifully!" >> $BACKUP_DIR/backup.log 2>&1

# 备份结束
echo -e "\033[32m \nBackup Successifully! \n \033[0m" 

参考自:https://github.com/Tespera/AutoBackupWebsite

一键shell脚本上传本地文件到FTP服务器

Linux服务器SSH挂断后继续后台运行命令

Debian/Ubuntu用rclone挂载Google Drive团队盘1

需要注意,在rclone官网查看可以挂载哪些网盘!

CentOS或者其它Linux系统,请使用以下命令安装rclone

在Windows电脑上下载Rclone,下载地址:https://rclone.org/downloads 然后解压至D盘根目录,将文件夹重新命名为rclone,按下键盘Win+R,然后输入cmd,确定;在出现的命令框中依次输入以下命令:

cd /d d:\rclone
rclone authorize "onedrive"
 curl  https://rclone.org/install.sh | sudo bash 

onedrive需要从windows端获得API ID,谷歌网盘挂载直接在挂载中途获取

Debian/Ubuntu系统安装rclone

 wget https://www.80tm.com/wp-download/rclone_debian.sh && bash rclone_debian.sh 

初始化配置

 rclone config 
 root@80tm:~#  rclone config
2020/04/10 02:03:40 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> googlepan1 #给项目起一个名字
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Dropbox
   \ "dropbox"
10 / Encrypt/Decrypt a remote
   \ "crypt"
11 / FTP Connection
   \ "ftp"
12 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
13 / Google Drive
   \ "drive"
14 / Google Photos
   \ "google photos"
15 / Hubic
   \ "hubic"
16 / In memory object storage system.
   \ "memory"
17 / JottaCloud
   \ "jottacloud"
18 / Koofr
   \ "koofr"
19 / Local Disk
   \ "local"
20 / Mail.ru Cloud
   \ "mailru"
21 / Mega
   \ "mega"
22 / Microsoft Azure Blob Storage
   \ "azureblob"
23 / Microsoft OneDrive
   \ "onedrive"
24 / OpenDrive
   \ "opendrive"
25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
26 / Pcloud
   \ "pcloud"
27 / Put.io
   \ "putio"
28 / QingCloud Object Storage
   \ "qingstor"
29 / SSH/SFTP Connection
   \ "sftp"
30 / Sugarsync
   \ "sugarsync"
31 / Transparently chunk/split large files
   \ "chunker"
32 / Union merges the contents of several remotes
   \ "union"
33 / Webdav
   \ "webdav"
34 / Yandex Disk
   \ "yandex"
35 / http Connection
   \ "http"
36 / premiumize.me
   \ "premiumizeme"
Storage> 13 #13是谷歌网盘
** See help for drive backend at: https://rclone.org/drive/ **

Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a string value. Press Enter for the default ("").
client_id> #直接回车
Google Application Client Secret
Setting your own is recommended.
Enter a string value. Press Enter for the default ("").
client_secret> #直接回车
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / Full access all files, excluding Application Data Folder.
   \ "drive"
 2 / Read-only access to file metadata and file contents.
   \ "drive.readonly"
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ "drive.file"
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \ "drive.appfolder"
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \ "drive.metadata.readonly"
scope> 1 #完全的访问权限
ID of the root folder
Leave blank normally.

Fill in to access "Computers" folders (see docs), or for rclone to use
a non root folder as its starting point.

Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.

Enter a string value. Press Enter for the default ("").
root_folder_id> 
回车默认设置
Service Account Credentials JSON file path 
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default ("").
service_account_file> 
回车默认设置
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n #不需要进入高级配置
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> n #不需要自动配置
Please go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=sK4NOjkW4PvvlACA2FmRlg
Log in and authorize rclone for access
Enter verification code> 4/ygGcD一长串数字  #复制上面的谷歌链接到浏览器地址打开授权获取授权码填写到这里
Configure this as a team drive?
y) Yes
n) No (default)
y/n> y #选择谷歌团队盘
Fetching team drive list...
Choose a number from below, or type in your own value
 1 / drive2
   \ "0ACwUIdUjXa-sdafsd"
 2 / drive3
   \ "0AEgZyJlnodsaf"
Enter a Team Drive ID> 1 #多个团队盘,选择是哪一个
--------------------
[googlepan1]
type = drive
scope = drive
token = {"access_token":"ya29.a0Ae4lvC3S4gpa3jiQzypd8-cqQ_L4J2ROVXdsafsd0jd9hNaXy_2G_z1mHrsP5KgZRNCb5uG3rmIJC6r8AjPg2EBdKTB6pAnwy56-kPnsL8-E3Rx77_efreY7LrWTLR5btnAuSgeXb_DKycTDc","token_type":"Bearer","refresh_token":"1//0hdsafasdBM6CgYIARAAGBESNwF-L9IrCEv9WpzWi18y1OnktS6w2gLpo16SAzhTiQd8eLkxTWW2Tmg3SPAWOs90dC8jfkuddDT0","expiry":"2020-04-10T03:04:22.461408986Z"}
team_drive = 0ACwUIdUffa-CUk9PVA
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y #需要有编辑权限
Current remotes:

Name                 Type
====                 ====
googlepan1           drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q #退出
 

使用说明

### 文件上传
rclone copy /home/backup gdrive:backup # 本地路径 配置名字:谷歌文件夹名字
### 文件下载
rclone copy gdrive:backup /home/backup
### 列表
rclone ls gdrive:backup
rclone lsl gdrive:backup # 比上面多一个显示上传时间
rclone lsd gdrive:backup # 只显示文件夹
### 新建文件夹
rclone mkdir gdrive:backup
### 挂载
rclone mount gdrive:mm /root/mm &
### 卸载
fusermount -u  /root/mm

#### 其他 ####
#### https://softlns.github.io/2016/11/28/rclone-guide/
rclone move <源文件夹> <目标远程>:<目标文件夹路径>   剪切上传整个文件夹的文件
rclone config - 以控制会话的形式添加rclone的配置,配置保存在.rclone.conf文件中。
rclone copy - 将文件从源复制到目的地址,跳过已复制完成的。
rclone sync - 将源数据同步到目的地址,只更新目的地址的数据。   –dry-run标志来检查要复制、删除的数据
rclone move - 将源数据移动到目的地址。
rclone delete - 删除指定路径下的文件内容。
rclone purge - 清空指定路径下所有文件数据。
rclone mkdir - 创建一个新目录。
rclone rmdir - 删除空目录。
rclone check - 检查源和目的地址数据是否匹配。
rclone ls - 列出指定路径下所有的文件以及文件大小和路径。
rclone lsd - 列出指定路径下所有的目录/容器/桶。
rclone lsl - 列出指定路径下所有文件以及修改时间、文件大小和路径。
rclone md5sum - 为指定路径下的所有文件产生一个md5sum文件。
rclone sha1sum - 为指定路径下的所有文件产生一个sha1sum文件。
rclone size - 获取指定路径下,文件内容的总大小。.
rclone version - 查看当前版本。
rclone cleanup - 清空remote。
rclone dedupe - 交互式查找重复文件,进行删除/重命名操作。
#### 其他 ####
挂载到本地
apt-get install -y nload htop fuse p7zip-full

#::挂载为磁盘
rclone mount DriveName:Folder LocalFolder --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000
 
#::卸载磁盘
fusermount -qzu LocalFolder

开机自启
先新建systemd配置文件,适用CentOS 7、Debian 8+、Ubuntu 16+
#将后面修改成你上面手动运行命令中,除了rclone的全部参数
command=”mount googlepan1: /root/GoogleDrive –copy-links –no-gzip-encoding –no-check-certificate –allow-other –allow-non-empty –umask 000″
#以下是一整条命令,一起复制到SSH客户端运行
cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
After=network-online.target

[Service]
Type=simple
ExecStart=$(command -v rclone) ${command}
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF

 

开始启动:

systemctl start rclone

设置开机自启:

systemctl enable rclone

其他命令:
重启:

systemctl restart rclone

停止:

systemctl stop rclone

状态:

systemctl status rclone

如果你想挂载多个网盘,那么将systemd配置文件的rclone.service改成rclone1.service即可,重启动什么的同样换成rclone1。

VPS服务器测试命令1

wget下载综合使用方法

下载后自动重命名:

wget http://photoapps.yd.chaoxing.com/MobileApp/GDSL/teshu/pdzx/GDSL8149.pdzx -O 中国经济双重转型之路.pdzx 

-O 文件名.后缀 -O参数是用来重写下载文件名的
说明一下wget的用法。

使用 wget 下载一个目录下的所有文件

wget -r -np -nH -R index.html http://url/including/files/you/want/to/download/

各个参数的含义:
-r : 遍历所有子目录
-np : 不到上一层子目录去
-nH : 不要将文件保存到主机名文件夹
-R index.html : 不下载 index.html 文件

1、下载整个http或者ftp站点

wget http://place.your.url/here

这个命令可以将http://place.your.url/here 首页下载下来。使用-x会强制建立服务器上一模一样的目录,如果使用-nd参数,那么服务器上下载的所有内容都会加到本地当前目录。

wget -r http://place.your.url/here

这个命令会按照递归的方法,下载服务器上所有的目录和文件,实质就是下载整个网站。这个命令一定要小心使用,因为在下载的时候,被下载网站指向的所有地址 同样会被下载,因此,如果这个网站引用了其他网站,那么被引用的网站也会被下载下来!基于这个原因,这个参数不常用。可以用-l number参数来指定下载的层次。例如只下载两层,那么使用-l 2。

要是您想制作镜像站点,那么可以使用-m参数,例如:

wget -m http://place.your.url/here

这时wget会自动判断合适的参数来制作镜像站点。此时,wget会登录到服务器上,读入robots.txt并按robots.txt的规定来执行。

2、断点续传
当文件特别大或者网络特别慢的时候,往往一个文件还没有下载完,连接就已经被切断,此时就需要断点续传。wget的断点续传是自动的,只需要使用-c参数,例如:

wget -c http://the.url.of/incomplete/file

使用断点续传要求服务器支持断点续传。-t参数表示重试次数,例如需要重试100次,那么就写-t 100,如果设成-t 0,那么表示无穷次重试,直到连接成功。-T参数表示超时等待时间,例如-T 120,表示等待120秒连接不上就算超时。

3、批量下载
如果有多个文件需要下载,那么可以生成一个文件,把每个文件的URL写一行,例如生成文件download.txt,然后用命令:

wget -i download.txt

这样就会把download.txt里面列出的每个URL都下载下来。(如果列的是文件就下载文件,如果列的是网站,那么下载首页)

4、选择性的下载
可以指定让wget只下载一类文件,或者不下载什么文件。例如:

wget -m –reject=gif http://target.web.site/subdirectory

表示下载http://target.web.site/subdirectory,但是忽略gif文件。–accept=LIST 可以接受的文件类型,–reject=LIST拒绝接受的文件类型。

5、密码和认证
wget只能处理利用用户名/密码方式限制访问的网站,可以利用两个参数:

–http-user=USER    设置HTTP用户
–http-passwd=PASS   设置HTTP密码

对于需要证书做认证的网站,就只能利用其他下载工具了,例如curl。

6、利用代理服务器进行下载
如果用户的网络需要经过代理服务器,那么可以让wget通过代理服务器进行文件的下载。此时需要在当前用户的目录下创建一个.wgetrc文件。文件中可以设置代理服务器:

http-proxy = 111.111.111.111:8080
ftp-proxy = 111.111.111.111:8080

分别表示http的代理服务器和ftp的代理服务器。如果代理服务器需要密码则使用:

–proxy-user=USER       设置代理用户
–proxy-passwd=PASS     设置代理密码

这两个参数,使用参数–proxy=on/off 使用或者关闭代理;wget还有很多有用的功能,需要自己可以去了解一下参数和用法。

wget的使用格式

 

Usage: wget [OPTION]… [URL]…

1、用wget做站点镜像

wget -r -p -np -k http://dsec.pku.edu.cn/~usr_name/
or
wget -m http://dsec.pku.edu.cn/~usr_name/

2、在不稳定的网络上下载一个部分下载的文件,以及在空闲时段下载

wget -t 0 -w 31 -c http://dsec.pku.edu.cn/BBC.avi -o down.log &

或者从filelist读入要下载的文件列表

wget -t 0 -w 31 -c -B ftp://dsec.pku.edu.cn/linuxsoft -i filelist.txt -o down.log &

上面的代码还可以用来在网络比较空闲的时段进行下载。我的用法是:在mozilla中将不方便当时下载的URL链接拷贝到内存中然后粘贴到文件 filelist.txt中,在晚上要出去系统前执行上面代码的第二条。

3、使用代理下载

wget -Y on -p -k https://sourceforge.net/projects/wvware/

代理可以在环境变量或wgetrc文件中设定。

在环境变量中设定代理:

export PROXY=http://211.90.168.99:8080/

在~/.wgetrc中设定代理:

http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/

 

wget各种选项分类列表

1、启动

-V, –version 显示wget的版本后退出
-h, –help 打印语法帮助
-b, –background 启动后转入后台执行
-e, –execute=COMMAND 执行`.wgetrc’格式的命令,wgetrc格式参见/etc/wgetrc或~/.wgetrc

2、记录和输入文件

-o, –output-file=FILE 把记录写到FILE文件中
-a, –append-output=FILE 把记录追加到FILE文件中
-d, –debug 打印调试输出
-q, –quiet 安静模式(没有输出)
-v, –verbose 冗长模式(这是缺省设置)
-nv, –non-verbose 关掉冗长模式,但不是安静模式
-i, –input-file=FILE 下载在FILE文件中出现的URLs
-F, –force-html 把输入文件当作HTML格式文件对待
-B, –base=URL 将URL作为在-F -i参数指定的文件中出现的相对链接的前缀
–sslcertfile=FILE 可选客户端证书
–sslcertkey=KEYFILE 可选客户端证书的KEYFILE
–egd-file=FILE 指定EGD socket的文件名

3、下载

–bind-address=ADDRESS 指定本地使用地址(主机名或IP,当本地有多个IP或名字时使用)
-t, –tries=NUMBER 设定最大尝试链接次数(0 表示无限制).
-O –output-document=FILE 把文档写到FILE文件中
-nc, –no-clobber 不要覆盖存在的文件或使用.#前缀
-c, –continue 接着下载没下载完的文件
–progress=TYPE 设定进程条标记
-N, –timestamping 不要重新下载文件除非比本地文件新
-S, –server-response 打印服务器的回应
–spider 不下载任何东西
-T, –timeout=SECONDS 设定响应超时的秒数
-w, –wait=SECONDS 两次尝试之间间隔SECONDS秒
–waitretry=SECONDS 在重新链接之间等待1…SECONDS秒
–random-wait 在下载之间等待0…2*WAIT秒
-Y, –proxy=on/off 打开或关闭代理
-Q, –quota=NUMBER 设置下载的容量限制
–limit-rate=RATE 限定下载输率

4、目录

-nd –no-directories 不创建目录
-x, –force-directories 强制创建目录
-nH, –no-host-directories 不创建主机目录
-P, –directory-prefix=PREFIX 将文件保存到目录 PREFIX/…
–cut-dirs=NUMBER 忽略 NUMBER层远程目录

5、HTTP选项

–http-user=USER 设定HTTP用户名为 USER.
–http-passwd=PASS 设定http密码为 PASS.
-C, –cache=on/off 允许/不允许服务器端的数据缓存 (一般情况下允许).
-E, –html-extension 将所有text/html文档以.html扩展名保存
–ignore-length 忽略 `Content-Length’头域
–header=STRING 在headers中插入字符串 STRING
–proxy-user=USER 设定代理的用户名为 USER
–proxy-passwd=PASS 设定代理的密码为 PASS
–referer=URL 在HTTP请求中包含 `Referer: URL’头
-s, –save-headers 保存HTTP头到文件
-U, –user-agent=AGENT 设定代理的名称为 AGENT而不是 Wget/VERSION.
–no-http-keep-alive 关闭 HTTP活动链接 (永远链接).
–cookies=off 不使用 cookies.
–load-cookies=FILE 在开始会话前从文件 FILE中加载cookie
–save-cookies=FILE 在会话结束后将 cookies保存到 FILE文件中

6、FTP选项

-nr, –dont-remove-listing 不移走 `.listing’文件
-g, –glob=on/off 打开或关闭文件名的 globbing机制
–passive-ftp 使用被动传输模式 (缺省值).
–active-ftp 使用主动传输模式
–retr-symlinks 在递归的时候,将链接指向文件(而不是目录)

7、递归下载

-r, –recursive 递归下载--慎用!
-l, –level=NUMBER 最大递归深度 (inf 或 0 代表无穷).
–delete-after 在现在完毕后局部删除文件
-k, –convert-links 转换非相对链接为相对链接
-K, –backup-converted 在转换文件X之前,将之备份为 X.orig
-m, –mirror 等价于 -r -N -l inf -nr.
-p, –page-requisites 下载显示HTML文件的所有图片

8、递归下载中的包含和不包含(accept/reject)

-A, –accept=LIST 分号分隔的被接受扩展名的列表
-R, –reject=LIST 分号分隔的不被接受的扩展名的列表
-D, –domains=LIST 分号分隔的被接受域的列表
–exclude-domains=LIST 分号分隔的不被接受的域的列表
–follow-ftp 跟踪HTML文档中的FTP链接
–follow-tags=LIST 分号分隔的被跟踪的HTML标签的列表
-G, –ignore-tags=LIST 分号分隔的被忽略的HTML标签的列表
-H, –span-hosts 当递归时转到外部主机
-L, –relative 仅仅跟踪相对链接
-I, –include-directories=LIST 允许目录的列表
-X, –exclude-directories=LIST 不被包含目录的列表
-np, –no-parent 不要追溯到父目录

wget -S –spider url 不下载只显示过程。

Linux服务器SSH挂断后继续后台运行命令

linux强制覆盖复制所有文件与不覆盖复制所有文件

Google Voice保号方法谷歌GV保号

GV保号新方法
拨打电话使用ChatGPT

OpenAI 公司为用户提供了一种与聊天机器人 ChatGPT 互动的新方式:

打电话
拨打1-800-CHATGPT
拨打1-800-242-8478

 

PC端使用改地址:https://voice.google.com/

GV官方推荐app,具有Googlevoice app的全部功能,还可以创建环聊群组,是一款im-like应用(打电话还是建议使用环聊拨号器,因为VOICE需要代理节点支持UDP通讯)。

使用注意点:
1、环聊和Google Voice app不可以同时使用,使用环聊时需将号码授权从Google Voice app转移到环聊。
2、必须将Google Voice号码设置为谷歌账号的辅助号码,否则可能会出现无法转接的情况。
3、WebChat Out充值需要微信和Google Play商店都打开后台弹出界面权限,否则无法充值。

安卓端环聊及环聊拨号器下载地址:
https://play.google.com/store/apps/details?id=com.google.android.talk&referrer=utm_source%3Dlandingpage%26utm_campaign%3Dlandingpage&hl=en

【环聊】

https://play.google.com/store/apps/details?id=com.google.android.apps.hangoutsdialer&referrer=utm_source%3Dlandingpage%26utm_campaign%3Dlandingpage&hl=en

【环聊拨号器】

Voice APP下载地址:https://play.google.com/store/apps/details?id=com.google.android.apps.googlevoice

对于苹果手机,请一定登录美国区的苹果账号进行下载。

苹果端环聊下载地址:https://itunes.apple.com/us/app/hangouts/id643496868?mt=8&ign-mpt=uo%3D4

苹果端GV APP下载地址:https://apps.apple.com/us/app/google-voice/id318698524

特别提醒:注意红色部分!!!!

 

Google voice互相拨打免费,拨打美国和加拿大号码也是免费。

全球资费查询:https://voice.google.com/u/0/rates 

中国大陆资费:0.02美元/分钟,香港资费:0.03美元/分钟,相当于人民币一毛五和二毛一

保号条件:https://www.google.com/intl/zh-CN/googlevoice/program-policies.html

如果您有Google语音号码,但在9个月内既没有拨出电话或收到来电,也没有发送或收到短信,则Google会收回该号码。不过,Google不会收回已转携至Google语音服务或申请了永久使用权的号码。

 

1、订阅促销短信。

发送join 到 527365 ,然后要回复CC
先发 code 到 25666  然后回复 PROMO

也可以查询美国沃尔玛和好市多的促销短信订阅方式。

2.、打公共电话

有点儿公共资源。。。建议打个机器人试试就好了。

美国亚马逊免费客服热线:+1(888)280-4331

美国微软激活Windows免费电话:+1(888)571-2048

同时可查询其它美国大型公司的客服电话,注意IPhone是人工客服。

3、自定义电话

用IFTTT的定时服务定期拨打电话给你即可,这里推荐两个service

Keep Google Voice Active 一个月拨打一次,可自定义时间和日期(搜索Keep Gooogle Voice Active

Alarm Clock Phone Call 强迫症福利,可自定义拨打频率、时间

 

 

Google Play APK谷歌商店镜像站

不断变化的世界秩序—桥水基金达利欧

我相信,尽管与历史上许多其它时代相似,但未来的时代将与我们一生中迄今为止经历的任何时代都截然不同。

我之所以这么认为,是因为大约18个月前,我进行了一项有关帝国、及其储备货币和其市场的兴衰研究,这是由于我看到了我一生中从未发生过的许多不寻常的事态发展,但我知道这种事在历史上发生过无数次。最重要的是,我看到的:

  • 1、高负债率和极低利率的汇合,这限制了中央银行刺激经济的权力;
  • 2、国家内部巨大的贫富差距和政治分歧,导致社会和政治的冲突增加 ;
  • 3、崛起的世界大国(chi*a)正企图挑战已过度扩张的世界霸权(美国),从而导致外部冲突。最近的类似时间是1930年至1945年。这让我非常担忧。

 

 

以下英文原文,后续会全部翻译成中文。

I believe that the times ahead will be radically different from the times we have experienced so far in our lifetimes, though similar to many other times in history.

I believe this because about 18 months ago I undertook a study of the rises and declines of empires, their reserve currencies, and their markets, prompted by my seeing a number of unusual developments that hadn’t happened before in my lifetime but that I knew had occurred numerous times in history. Most importantly, I was seeing the confluence of 1) high levels of indebtedness and extremely low interest rates, which limits central banks’ powers to stimulate the economy, 2) large wealth gaps and political divisions within countries, which leads to increased social and political conflicts, and 3) a rising world power (China) challenging the overextended existing world power (the US), which causes external conflict.  The most recent analogous time was the period from 1930 to 1945.  This was very concerning to me.

As I studied history, I saw that this confluence of events was typical of periods that existed as roughly 10- to 20-year transition phases between big economic and political cycles that occurred over many years (e.g., 50-100 years).  These big cycles were comprised of swings between 1) happy and prosperous periods in which wealth is pursued and created productively and those with power work harmoniously to facilitate this and 2) miserable, depressing periods in which there are fights over wealth and power that disrupt harmony and productivity and sometimes lead to revolutions/wars. These bad periods were like cleansing storms that got rid of weaknesses and excesses, such as too much debt, and returned the fundamentals to a sounder footing, albeit painfully. They eventually caused adaptations that made the whole stronger, though they typically changed who was on top and the prevailing world order.

The answers to this question can only be found by studying the mechanics behind similar cases in history—the 1930-45 period but also the rise and fall of the British and Dutch empires, the rise and fall of Chinese dynasties, and others—to unlock an understanding of what is happening and what is likely to happen.[1] That was the purpose of this study.  Then the pandemic came along, which was another one of those big events that never happened to me but happened many times before my lifetime that I needed to understand better.

My Approach

While it might seem odd that an investment manager who is required to make investment decisions on short time frames would pay so much attention to long-term history, through my experiences I have learned that I need this perspective to do my job well.  My biggest mistakes in my career came from missing big market moves that hadn’t happened in my lifetime but had happened many times before.  These mistakes taught me that I needed to understand how economies and markets have worked throughout history and in faraway placesso that I could learn the timeless and universal mechanics underlying them and develop timeless and universal principles for dealing with them well.

The first of these big surprises for me came in 1971 when I was 22 years old and clerking on the floor of the New York Stock Exchange as a summer job.  On a Sunday night, August 15, 1971, President Nixon announced that the US would renege on its promise to allow paper dollars to be turned in for gold.  This led the dollar to plummet.  As I listened to Nixon speak, I realized that the US government had defaulted on a promise and that money as we knew it had ceased to exist.  That couldn’t be good, I thought.  So on Monday morning I walked onto the floor of the exchange expecting pandemonium as stocks took a dive. There was pandemonium all right, but not the sort I expected.  Instead of falling, the stock market jumped about 4 percent.  I was shocked.  That is because I hadn’t experienced a currency devaluation before.  In the days that followed, I dug into history and saw that there were many cases of currency devaluations that had similar effects on stock markets.  By studying further, I figured out why, and I learned something valuable that would help me many times in my future.  It took a few more of those painful surprises to beat into my head the realization that I needed to understand all the big economic and market moves that had happened in the last 100+ years and in all major countries.

In other words, if some big and important event had happened in the past (like the Great Depression of the 1930s), I couldn’t say for sure that it wouldn’t happen to me, so I had to figure out how it worked and be prepared to deal with it well. Through my research I saw that there were many cases of the same type of thing happening (e.g., depressions) and that by studying them just like a doctor studies many cases of a particular type of disease, I could gain a deeper understanding of how they work.  The way I work is to study as many of the important cases of a particular thing I can find and then to form a picture of a typical one, which I call an archetype. The archetype helps me see the cause-effect relationships that drive how these cases typically progress. Then I compare how the specific cases transpire relative to the archetypical one to understand what causes the differences between each case and the archetype.  This process helps me refine my understanding of the cause-effect relationships to the point where I can create decision-making rules in the form of “if/then” statements—i.e., if X happens, then make Y bet. Then I watch actual events transpire relative to that template and what we are expecting.  I do these things in a very systematic way with my partners at Bridgewater Associates.[1a] If events are on track we continue to bet on what typically comes next, and if events start to deviate we try to understand why and course correct.

My approach is not an academic one created for scholarly purposes; it is a very practical one that I follow in order to do my job well.  You see, as a global macro investor, the game I play requires me to understand what is likely to happen to economies better than the competition does.  From my years of wrestling with the markets and trying to come up with principles for doing it well, I’ve learned that 1) one’s ability to anticipate and deal well with the future depends on one’s understanding of the cause-effect relationships that make things change and 2) one’s ability to understand these cause-effect relationships comes from studying how they have played out in the past.  How practical this approach has been can be measured in Bridgewater’s performance track record over several decades.

This Approach Affects How I See Everything

Having done many such studies in pursuit of timeless and universal principles, I’ve learned that most things—e.g., prosperous periods, depressions, wars, revolutions, bull markets, bear markets, etc.—happen repeatedly through time.  They come about for basically the same reasons, typically in cycles, and often in cycles that are as long or longer than our lifetimes.  This has helped me come to see most everything as “another one of those,” just like a biologist, upon encountering a creature in the wild, would identify what species (or “one of those”) the creature belongs to, think about how that species of thing works, and try to have and use timeless and universal principles for dealing with it effectively.

Seeing events in this way helped shift my perspective from being caught in the blizzard of things coming at me to stepping above them to see their patterns through time.[2] The more related things I could understand in this way, the more I could see how they influence each other—e.g., how the economic cycle works with the political one—and how they interact over longer periods of time.  I also learned that when I paid attention to the details I couldn’t see the big picture and when I paid attention to the big picture I couldn’t see the details.  Yet in order to understand the patterns and the cause-effect relationships behind them, I needed to see with a higher-level, bigger-picture perspective and a lower-level, detailed perspective simultaneously, looking at the interrelationships between the most important forces over long periods of time.  To me it appears that most things evolve upward (improve over time) with cycles around them, like an upward-pointing corkscrew:

No alt text provided for this image

For example, over time our living standards rise because we learn more, which leads to higher productivity, but we have ups and downs in the economy because we have debt cycles that drive actual economic activity up and down around that uptrend.

I believe that the reason people typically missthe big moments of evolution coming at them in life is that we each experience only tiny pieces of what’s happening.  We are like ants preoccupied with our jobs of carrying crumbs in our minuscule lifetimes instead of having a broader perspective of the big-picture patterns and cycles, the important interrelated things driving them, and where we are within the cycles and what’s likely to transpire. From gaining this perspective, I’ve come to believe that there are only a limited number of personality types going down a limited number of paths that lead them to encounter a limited number of situations to produce only a limited number of stories that repeat over time.[3]

The only things that change are the clothes the characters are wearing and the technologies they’re using.

This Study & How I Came to Do It

One study led to another that led me to do this study.  More specifically:

  • Studying money and credit cycles throughout history made me aware of the long-term debt cycle (which typically lasts about 50-100 years), which led me to view what is happening now in a very different way than if I hadn’t gained that perspective.  For example, before interest rates hit 0% and central banks printed money and bought financial assets in response to the 2008-09 financial crisis I had studied that happening in the 1930s, which helped us navigate that crisis well.  From that research, I also saw how and why these central bank actions pushed financial asset prices and the economy up, which widened the wealth gap and led to an era of populism and conflict.  We are now seeing the same forces at play in the post-2009 period.
  • In 2014, I wanted to forecast economic growth rates in a number of countries because they were relevant to our investment decisions.  I used the same approach of studying many cases to find the drivers of growth and come up with timeless and universal indicators for anticipating countries’ growth rates over 10-year periods.  Through this process, I developed a deeper understanding of why some countries did well and others did poorly.  I combined these indicators into gauges and equations that we use to produce 10-year growth estimates across the 20 largest economies.  Besides being helpful to us, I saw that this study could help economic policy makers because, by seeing these timeless and universal cause-effect relationships, they could know that if they changed X, it would have Y effect in the future.  I also saw how these 10-year leading economic indicators (such as the quality of education and the level of indebtedness) were worsening for the US relative to big emerging countries such as China and India.  This study is called “Productivity and Structural Reform: Why Countries Succeed and Fail, and What Should Be Done So Failing Countries Succeed.”
  • Soon after the Trump election in 2016 and with increases in populism in developed countries becoming more apparent, I began a study of populism.  That highlighted for me how gaps in wealth and values led to deep social and political conflicts in the 1930s that are similar to those that exist now.  It also showed me how and why populists of the left and populists of the right were more nationalistic, militaristic, protectionist, and confrontational—and what such approaches led to.  I saw how strong the conflict between the economic/political left and right could become and the strong impact this conflict has on economies, markets, wealth, and power, which gave me a better understanding of events that were and still are transpiring.
  • From doing these studies, and from observing numerous things that were happening around me, I saw that America was experiencing very large gaps in people’s economic conditions that were obscured by looking only at economic averages. So I divided the economy into quintiles—i.e., looking at the top 20% of income earners, the next 20%, and so on down to the bottom 20%—and examined the conditions of these populations individually.  This resulted in two studies.  In “Our Biggest Economic, Social, and Political Issue: The Two Economies—The Top 40% and the Bottom 60%,” I saw the dramatic differences in conditions between the “haves” and the “have-nots,” which helped me understand the greater polarity and populism I saw emerging.  Those findings, as well as the intimate contact my wife and I were having through her philanthropic work with the reality of wealth and opportunity gaps in Connecticut communities and their schools, led to the research that became my “Why and How Capitalism Needs to Be Reformed” study.
  • At the same time, through my many years of international dealings in and research of other countries, I saw huge global economic and geopolitical shifts taking place, especially in China.  I have been going to China a lot over the last 35 years and am lucky enough to have become well-acquainted with its top policy makers.  This has helped me see up close how remarkable the advances in China have been and how excellent the capabilities and historical perspectives that were behind them are.  These excellent capabilities and perspectives have led China to become an effective competitor with the US in production, trade, technology, geopolitics, and world capital markets.

By the way you can read these studies for free at www.economicprinciples.org.

So, whatyou are now reading came about because of my need to understand important things that are now happening that hadn’t happened in my lifetime but have happened many times before that.  These things are the result of three big forces and the questions they prompt.

1) THE LONG-TERM MONEY AND DEBT CYCLE

At no point in our lifetimes have interest rates been so low or negative on so much debt as they are today.  At the start of 2020, more than $10 trillion of debt was at negative interest rates and an unusually large amount of additional new debt will soon need to be sold to finance deficits.  This is happening at the same time as huge pension and healthcare obligations are coming due.  These circumstances raised some interesting questions for me.  Naturally I wondered why anyone would want to hold debt yielding a negative interest rate and how much lower interest rates can be pushed.  I also wondered what will happen to economies and markets when they can’t be pushed lower and how central banks could be stimulative when the next downturn inevitably came.  Would central banks print a lot more currency, causing its value to go down? What would happen if the currency that the debt is denominated in goes down while interest rates are so low?  These questions led me to ask what central banks will do if investors flee debt denominated in the world’s reserve currencies (i.e., the dollar, the euro, and the yen), which would be expected if the money that they are being paid back in is both depreciating in value and paying interest rates that are so low.

In case you don’t know, a reserve currency is a currency that is accepted around the world for transactions and savings. The country that gets to print the world’s primary currency (now the US) is in a very privileged and powerful position, and debt that is denominated in the world’s reserve currency (i.e., US dollar-denominated debt) is the most fundamental building block for the world’s capital markets and the world’s economies.  It is also the case that all reserve currencies in the past have ceased to be reserve currencies, often coming to traumatic ends for the countries that enjoyed this special privilege.  So I also began to wonder whether, when, and why the dollar will decline as the world’s leading reserve currency—and how that would change the world as we know it.

2) THE DOMESTIC WEALTH AND POWER CYCLE  

Wealth, values, and political gaps are now larger than at any other time during my lifetime.  By studying the 1930s and other prior eras when polarity was also high, I’ve learned that which side wins out (i.e., left or right) will have very big impacts on economies and markets.  So naturally I wondered what these gaps will lead to in our time.  My examinations of history have taught me that, as a principle, when wealth and values gaps are large and there is an economic downturn, it is likely that there will be lot of conflict about how to divide the pie. How will people and policy makers be with each other when the next economic downturn arrives? I am especially concerned because of the previously mentioned limitations on central banks’ abilities to cut interest adequately to stimulate the economy.  In addition to these traditional tools being ineffective, printing money and buying financial assets (now called “quantitative easing”) also widen the wealth gap because buying financial assets pushes up their prices, which benefits the wealthy who hold more financial assets than the poor.

3)  THE INTERNATIONAL WEALTH AND POWER CYCLE 

For the first time in my lifetime, the United States is encountering a rival power.  China has become a competitive power to the United States in a number of ways and is growing at a faster rate than the US.  If trends continue, it will be stronger than the United States in most of the most important ways that an empire becomes dominant.  (Or at the very least, it will become a worthy competitor.)  I have seen both countries up close for most of my life, and I now see how conflict is increasing fast, especially in the areas of trade, technology, geopolitics, capital, and economic/political/social ideologies.  I can’t help but wonder how these conflicts, and the changes in the world order that will result from them, will transpire in the years ahead and what effects that will have on us all.

The confluence of these three factors piques my curiosity and most draws my attention to similar periods such as the 1930-45 period and numerous others before that. More specifically, in 2008-09 like in 1929-32, there were serious debt and economic crises.  In both cases, interest rates hit 0% which limited central banks’ ability to use interest rate cuts to stimulate the economy, so, in both cases, central banks printed a lot of money to buy financial assets which, in both cases, caused financial asset prices to rise and widened the wealth gap.  In both periods, wide wealth and income gaps led to a high level of political polarization that took the form of greater populism and battles between ardent socialist-led populists of the left and ardent capitalist-led populists of the right.  These domestic conflicts stewed while emerging powers (Germany and Japan in the 1930s) increasingly challenged the existing world power.  And finally, just like today, the confluence of these factors meant that it was impossible to understand any one of them without also understanding the overlapping influences among them.

As I studied these factors, I knew that the short-term debt cycle was getting late and I knew that a downturn would eventually come.  I did not expect the global pandemic to be what brought it about, though I did know that past pandemics and other acts of nature (like droughts and floods) have sometimes been important contributors to these seismic shifts.

To gain the perspective I needed about these factors and what their confluence might mean, I looked at the rises and declines of all the major empires and their currencies over the last 500 years, focusing most closely on the three biggest ones: the US empire and the US dollar which are most important now, the British Empire and the British pound which were most important before that, and the Dutch Empire and the Dutch guilder before that.  I also focused less closely on the other six other significant, though less dominant, empires of Germany, France, Russia, Japan, China, and India.  Of those six, I gave China the most attention and looked at its history back to the year 600 because 1) China was so important throughout history, it’s so important now, and it will likely be even more important in the future and 2) it provides many cases of dynasties rising and declining to look at to help me better understand the patterns and the forces behind them.  In these cases, a clearer picture emerged of how other influences, most importantly technology and acts of nature, played significant roles.  From examining all these cases across empires and across time, I saw that important empires typically lasted roughly 250 years, give or take 150 years, with big economic, debt, and political cycles within them lasting about 50-100 years.  By studying how these rises and declines worked individually, I could see how they worked on average in an archetypical way, and then I could examine how they worked differently and why.  Doing that taught me a lot. My challenge is in trying to convey it well.

Remember That What I Don’t Know Is Much Greater Than What I Know

In asking these questions, from the outset I felt like an ant trying to understand the universe.  I had many more questions than answers, and I knew that I was delving into numerous areas that others have devoted their lives to studying.  So I aggressively and humbly drew on knowledge of some remarkable scholars and practitioners, who each had in-depth perspectives on some piece of the puzzle, though none had the holistic understanding that I needed in order to adequately answer all my questions.  In order to understand all the cause-effect relationships behind these cycles, I combined my triangulation with historians (who specialized in different parts of this big, complicated history) and policy makers (who had both practical experiences and historical perspectives) with an examination of statistics drawn out of ancient and contemporary archives by my excellent research team and by reading a number of superb books on history.

While I have learned an enormous amount that I will put to good use, I recognize that what I know is still only a tiny portion of what I’d like to know in order to be confident about my outlook for the future.  Still, I also know from experience that if I waited to learn enough to be satisfied with my knowledge, I’d never be able to use or convey what I have learned.  So please understand that while this study will provide you with my very top-down, big-picture perspective on what I’ve learned and my very low-confidence outlook for the future, you should approach my conclusions as theories rather than facts.  But please keep in mind that even with all of this, I have been wrong more times than I can remember, which is why I value diversification of my bets above all else. So, whenever I provide you with what I think, as I’m doing in this study, please realize that I’m just doing the best I can to openly convey to you my thinking.

It’s up to you to assess for yourself what I’ve learned and do what you like with it.

How This Study Is Organized

As with all my studies, I will attempt to convey what I learned in both a very short, simple way and in a much longer, more comprehensive way.  To do so, I wrote this book in two parts.

Part 1 summarizes all that I learned in one very simplified archetype of the rises and declines of empires, drawing from all my research of specific cases.  In order to make the most important concepts easy to understand, I will write in the vernacular, favoring clarity over precision.  As a result, some of my wording will be by and large accurate but not always precisely so. (I will also highlight key sentences in bold so that you can just read these and skip the rest to quickly get the big picture.)  I will first distill my findings into an index of total power of empires, which provides an overview of the ebbs and flows of different powers, that is constituted from eight indexes of different types of power.  Then I go into an explanation of these different types of power so you can understand how they work, and finally I discuss what I believe it all means for the future.

Part 2 shows all the individual cases in greater depth, sharing the same indices for all the major empires over the last 500 years.  Providing the information this way allows you to getthe gist of how I believe these rises and declines work by reading Part 1 and then to choose whether or not to go into Part 2 to see these interesting cases individually, in relation to each other, and in relation to the template explained in Part 1.  I suggest that you read both parts because I expect that you will find the grand story of the evolutions of these countries over the last 500 years in Part 2 fascinating.  That story presents a sequential picture of the world’s evolution via the events that led the Dutch empire to rise and decline into the British empire, the British empire to rise and decline into the US empire, and the US empire to rise and enter its early decline into the rise of the Chinese empire.  It also compares these three empires with those of Germany, France, Russia, Japan, China, and India.  As you will see in the examinations of each of them, they all broadly followed the script, though not exactly.  Additionally, I expect that you will find fascinating and invaluable the stories of the rises and declines of the Chinese dynasties since the year 600 just like I did.  Studying the dynasties showed me what in China has been similar to the other rises and declines (which is most everything), helped me to see what was different (which is what makes China different from the West), and gave me an understanding of the perspectives of the Chinese leaders who all study these dynasties carefully for the lessons they provide.

Frankly, I don’t know how I’d be able to navigate what is happening now and what will be coming at us without having studied all this history.  But before we get into these fascinating individual cases, let’s delve into the archetypical case.

IMPORTANT DISCLOSURES

Information contained herein is only current as of the printing date and is intended only to provide the observations and views of Bridgewater Associates, L.P. (“Bridgewater”) as of the date of writing unless otherwise indicated. Bridgewater has no obligation to provide recipients hereof with updates or changes to the information contained herein. Performance and markets may be higher or lower than what is shown herein and the information, assumptions and analysis that may be time sensitive in nature may have changed materially and may no longer represent the views of Bridgewater. Statements containing forward-looking views or expectations (or comparable language) are subject to a number of risks and uncertainties and are informational in nature. Actual performance could, and may have, differed materially from the information presented herein. Past performance is not indicative of future results.

Bridgewater research utilizes data and information from public, private and internal sources, including data from actual Bridgewater trades. Sources include, the Australian Bureau of Statistics, Barclays Capital Inc., Bloomberg Finance L.P., CBRE, Inc., CEIC Data Company Ltd., Consensus Economics Inc., Corelogic, Inc., CoStar Realty Information, Inc., CreditSights, Inc., Credit Market Analysis Ltd., Dealogic LLC, DTCC Data Repository (U.S.), LLC, Ecoanalitica, EPFR Global, Eurasia Group Ltd., European Money Markets Institute – EMMI, Factset Research Systems, Inc., The Financial Times Limited, GaveKal Research Ltd., Global Financial Data, Inc., Haver Analytics, Inc., The Investment Funds Institute of Canada, Intercontinental Exchange (ICE), International Energy Agency, Lombard Street Research, Markit Economics Limited, Mergent, Inc., Metals Focus Ltd, Moody’s Analytics, Inc., MSCI, Inc., National Bureau of Economic Research, Organisation for Economic Cooperation and Development, Pensions & Investments Research Center, Refinitiv, Renwood Realtytrac, LLC, RP Data Ltd, Rystad Energy, Inc., S&P Global Market Intelligence Inc., Sentix Gmbh, Spears & Associates, Inc., State Street Bank and Trust Company, Sun Hung Kai Financial (UK), Tokyo Stock Exchange, United Nations, US Department of Commerce, Wind Information (Shanghai) Co Ltd, Wood Mackenzie Limited, World Bureau of Metal Statistics, and World Economic Forum. While we consider information from external sources to be reliable, we do not assume responsibility for its accuracy.

The views expressed herein are solely those of Bridgewater and are subject to change without notice. In some circumstances Bridgewater submits performance information to indices, such as Dow Jones Credit Suisse Hedge Fund index, which may be included in this material. You should assume that Bridgewater has a significant financial interest in one or more of the positions and/or securities or derivatives discussed.  Bridgewater’s employees may have long or short positions in and buy or sell securities or derivatives referred to in this material. Those responsible for preparing this material receive compensation based upon various factors, including, among other things, the quality of their work and firm revenues.

This material is for informational and educational purposes only and is not an offer to sell or the solicitation of an offer to buy the securities or other instruments mentioned. Any such offering will be made pursuant to a definitive offering memorandum. This material does not constitute a personal recommendation or take into account the particular investment objectives, financial situations, or needs of individual investors which are necessary considerations before making any investment decision. Investors should consider whether any advice or recommendation in this research is suitable for their particular circumstances and, where appropriate, seek professional advice, including legal, tax, accounting, investment or other advice.

The information provided herein is not intended to provide a sufficient basis on which to make an investment decision and investment decisions should not be based on simulated, hypothetical or illustrative information that have inherent limitations. Unlike an actual performance record, simulated or hypothetical results do not represent actual trading or the actual costs of management and may have under or over compensated for the impact of certain market risk factors. Bridgewater makes no representation that any account will or is likely to achieve returns similar to those shown. The price and value of the investments referred to in this research and the income therefrom may fluctuate.

Every investment involves risk and in volatile or uncertain market conditions, significant variations in the value or return on that investment may occur. Investments in hedge funds are complex, speculative and carry a high degree of risk, including the risk of a complete loss of an investor’s entire investment. Past performance is not a guide to future performance, future returns are not guaranteed, and a complete loss of original capital may occur. Certain transactions, including those involving leverage, futures, options, and other derivatives, give rise to substantial risk and are not suitable for all investors. Fluctuations in exchange rates could have material adverse effects on the value or price of, or income derived from, certain investments.

This information is not directed at or intended for distribution to or use by any person or entity located in any jurisdiction where such distribution, publication, availability or use would be contrary to applicable law or regulation or which would subject Bridgewater to any registration or licensing requirements within such jurisdiction.

No part of this material may be (i) copied, photocopied or duplicated in any form by any means or (ii) redistributed without the prior written consent of Bridgewater ® Associates, LP.

©2020 Bridgewater Associates, LP. All rights reserved


[1]To be clear, while I am describing these cycles of the past, I’m not one of those people who believe that what happened in the past will necessarily continue into the future without understanding the cause-effect mechanics that drive changes.  My objective above all else is to have you join with me in looking at the cause-effect relationships and then to use that understanding to explore what might be coming at us and agree on principles to handle it in the best possible way.

[1a]For example, I have followed this approach for debt cycles because I’ve had to navigate many of them over the last 50 years and they are the most important force driving big shifts in economies and markets.  If you are interested in understanding my template for understanding big debt crises and seeing all the cases that made it up, you can get Principles for Navigating Big Debt Crisesin free digital form at www.economicprinciples.org or in print form for sale in bookstores or online.  It was that perspective that allowed Bridgewater to navigate the 2008 financial crisis well when others struggled.  I’ve studied many big, important things (e.g., depressions, hyperinflation, wars, balance of payments crises, etc.) by following this approach, usually because I was compelled to understand unusual things that appeared to be germinating around me.

[2]I approach seeing just about everything this way.  For example, in building and running my business, I had to understand the realities of how people think and learn principles for dealing with these realities well, which I did using this same approach.  If you are interested in what I learned about such non-economic and non-market things, I conveyed it in my book Principles: Life and Work, which is free in an app called “Principles in Action” available on the Apple App Store or is for sale in the usual bookstores.

[3]In my book Principles: Life and Work, I shared my thinking about these different ways of thinking.  I won’t describe them here but will direct you there should you be interested.

香港手机卡最低资费方案

一、资费最低方案

1、香港CSL Hello卡

分为印尼卡和菲律宾卡,购买时请留意。

某宝无售,购买需要转运,香港各拍卖平台有售,30-40人民币即可到手$48储值额卡。

行政费:$2.5/月  有效期180天

增值方式:自行购买增值券增值,每增值$20可续期半年

漫游资费信息:https://www.hkcsl.com/en/pccw-hkt-hello-philippines-connect/

International Roaming Voice Call7 Roaming Charge
SMS3 Local / International SMS charges + $4 / SMS
Data8 $0.12 / KB

2、香港和记3卡(Three卡)

购买某宝有售(大约60-70能拿到$100储值额卡)

行政费:$0.5/半年

增值方式:某宝可购买增值券(增值券某宝有售)增值,每增值$50可续期一年,相当于$25半年

请注意:虽然官方写着只能增值券充值,但据考证可以官网网上增值(支付宝)同样能延期一年(不保证注意)

漫游资费信息:https://web.three.com.hk/prepaid/intcard/index.html

本地通話 流動電話至流動電話 $0.05 / 分鐘
流動電話至固網號碼 $0.06 / 分鐘 (星期一至五: 下午11點 – 上午11點; 星期六,日及公眾假期)
$0.12 / 分鐘 (星期一至五: 上午11點 – 下午11點)
短訊 網內 免費
(由2019年5月10日起將調整免費500個短訊/30日)16
網外 $0.5 / 短訊
國際 $2 / 短訊
漫遊 $3.5 / 短訊

二、其他方案

1、CMHK万众卡

行政费:$2/月,$50续期半年,储值方式支持支付宝

资费:

http://www.hk.chinamobile.com/tc/corporate_information/Prepaid_SIM/local_users/prepaid-services-4g3g-localtalk.html

2、CSL ABC卡

行政费:$3/月,$50续期半年,储值方式支持支付宝

资费:https://www.hkcsl.com/tc/abc-mobile-local-prepaid-sim/

3、CSL本地储值卡

应该和上面的ABC差不多

4、Smartone卡

行政费:$2.5/月,$50续期半年,储值方式支持AlipayHK

资费:

https://www.smartone.com/tc/mobile_and_price_plans/prepaid/broadband_sim/service.jsp

5、易博通

没有实体卡,收短信有一定限制,$68/年,不做整理

6、中国联通卡

不适合保号,不做整理

 

转载自可乐博客

linux强制覆盖复制所有文件与不覆盖复制所有文件

强制不提示覆盖复制所有文件:

 cp -Rf /root/OneDrive/* /root/gdrive/ 

 

不覆盖不提示复制所有文件:

 awk 'BEGIN { cmd="cp -ri /root/OneDrive/* /root/gdrive/"; print "n" |cmd; }' 

 

源目录:/root/OneDrive/  #所有文件末尾加*即可
目标目录:/root/gdrive/
 
查看复制进程是否存在:

pgrep -l cp 

 
多文件配合挂断命令执行,效果更佳:

Linux服务器SSH挂断后继续后台运行命令