# Setting Cloudflare ZeroTrust 1. 注册一个域名,将域名的 DNS 解析指向 Cloudflare 的 DNS。 2. 登录 Cloudflare,在网站中添加域名站点。 3. 在 Zero Trust - Network - Tunnels 中,创建隧道。 4. 在隧道中,创建公共主机名。 5. 下载 cloudflared 客户端,访问远程主机。 cat >~/.ssh/config <<EOFHost ssh.sakurayumeno.topProxyCommand...

# Install and configure git software # Setting environment git config --global user.name "username"git config --global user.email "email"cat >>/etc/profile.d/aliases.sh <<EOF# Added by sakuraalias hexoall='hexo g && hexo d...

# Docker Quick Commands and Tips # Fetch the logs of a containerdocker logs <container>docker logs -f <container>docker logs -f -t --since="2022-08-12" --tail=100 <container>

# Overview of Oracle Database # Oracle Database Documents ・ Oracle Database 9i Release 2 ・ Oracle Database 11g Release 2 | ・ Oracle Database 12c Release 2 | ・ Oracle Database 19c | ・ Oracle Database 21c | ・ Oracle Database 23ai | # Physical Architecture # Session 1 区 -> 2 区 -> 3 区 1 区...

# SQLServer Backup & Restore 1.Full Backup BACKUP DATABASE [zsyydb] TO DISK=N'\\192.0.33.222\Backup\zsyydb.bak'WITH NOFORMAT,NOINIT,NAME=N'zsyydb-full',SKIP,NOREWIND,NOUNLOAD,STATS=5GO2.Full Restore RESTORE DATABASE [zsyydb] FROM...

# echo_color #!/usr/bin/env bashecred='\033[0;31m'ecyellow='\033[0;33m'ecgreen='\033[32m'ecend='\033[0m'echo_red() { echo -e "${ecred}$@${ecend}"}echo_yellow() { echo -e...

# File Archive 归档 1 天前的文件,并将原文件删除。 #!/bin/bashfind /log -type f -name 'file_*' -atime -1 -exec mv {} /log/bak \;tar -zcf /log/bak_`date +%H%M%S`.tar.gz -P /log/bakrm -f /log/bak/*

# Linux Quick Commands and Tips # PS1 PS1="┌──\u@\h:\w\n└─\$ "┌──ubuntu@instance-20260728-0031:~└─$# String Trimming # Remove the trailing character "/"~]$ str=/u01/app/oracle/~]$ echo ${str%*/}/u01/app/oracle# Manufacturer...

# oracle_11g_setup #! /usr/bin/env bash# set -e Exit immediately if a command exits with a non-zero status.set -esource /assets/colorechotrap "echo_red '******* ERROR: Something went wrong.'; exit 1" SIGTERMtrap "echo_red '******* Caught SIGINT signal. Stopping...';...

# lsb_functions ## Use LSB init script functions for printing messages, if possible#lsb_functions="/lib/lsb/init-functions"if test -f $lsb_functions ; then . $lsb_functionselse # Include non-LSB Redhat init functions to make systemctl redirect work...