春有百花秋有月
夏有凉风冬有雪Oracle cloud申请与R探长抢实例
近期成功申请到了Oracle cloud的账号,简单总结一下相关信息。
号与永久免费使用的说明**
Out of capacity for shape VM.Standard.E2.1.Micro in availability domain AD-1. Create the instance in a different availability domain or try again later. If you specified a fault domain, try creating the instance without specifying a fault domain. If that doesn’t work, please try again later. Learn more about host capacity.
听说最近(2024年11月14日)只有孟买可以手工创建成功,其它区域都比较难,上网找解决方案,试试R探长脚本。
详情可参考:https://telegra.ph/oracleR-Bot-03-04
核心步骤
wget -N "https://raw.githubusercontent.com/jin-gubang/public/main/oracle_role_apiuser_policy.sh" --no-check-certificate && chmod +x oracle_role_apiuser_policy.sh && bash oracle_role_apiuser_policy.sh
关于运行语句的内容及安全性,有能力的可以查看GitHub
https://github.com/jin-gubang/public/blob/main/oracle_role_apiuser_policy.sh
运行后的效果如下:
在服务器上安装 v2ray-plugin 插件
在服务器上安装 v2ray-plugin 插件,具体步骤如下:
在安装 v2ray-plugin 之前,需要确保服务器上已经安装了 Shadowsocks 以及相关的依赖,如 wget 和 unzip。
运行以下命令来更新系统并安装依赖:
sudo apt update
sudo apt install wget unzip -y
- 下载 v2ray-plugin
https://github.com/shadowsocks/v2ray-plugin/releases
wget https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.2/v2ray-plugin-linux-amd64-v1.3.2.tar.gz
- 解压 v2ray-plugin
下载完成后,使用以下命令解压:
tar -zxvf v2ray-plugin-linux-amd64-v1.3.2.tar.gz
解压后会生成一个可执行文件 v2ray-plugin。
阅读剩余部分 →网页正常,app登录自托管bitwarden报错:An error has occurred.
更新ios到18系统之后,网页正常,app登录自托管bitwarden报错:An error has occurred.
尝试如下解决方案:
阅读剩余部分 →使用vnstat监控vps的流量并用python脚本定期发送邮件提醒
在使用 wgcf 创建的 WireGuard VPN 接口的情况下,你可能想要监控的是 VPS 流量而不仅仅是默认的物理网络接口(如 ens5)。WireGuard 通常会创建一个名为 wg0 或类似的虚拟网络接口。如果你想要监控通过这个 VPS 接口的流量,你需要确保 vnStat 也监控这个接口。
以下是在 Debian 系统上安装 vnStat 并监控 WireGuard 接口的步骤:
安装 vnStat:
sudo apt-get up
<!--more-->
date
sudo apt-get install vnstat
确认 WireGuard 接口名称:
安装 WireGuard 后,通过以下命令确认创建的 VPN 接口名称:
wg
或者
ifconfig -a
通常,WireGuard 接口会被命名为 wg0、wg1 等。
初始化 vnStat 数据库:
使用 WireGuard 接口名称(例如 wg0)初始化 vnStat 数据库:
sudo vnstat -u -i wg0
如果你还想要监控物理接口(例如 ens5),可以一次性监控多个接口:
使用bench.sh查看Linux系统信息、测试网络带宽及硬盘I/O读写速率
Bench.sh一键测试脚本几乎适用于Linux各种发行版本的测试,bench.sh可以查看Linux系统信息、测试网络带宽及硬盘I/O读写速率。使用方法执行下方命令即可:
wget https://github.com/teddysun/across/blob/master/bench.sh
chmod +x bench.sh
wget -qO- bench.sh | bash
or
阅读剩余部分 →WARP多功能一键脚本,解锁ChatGPT客户端
warp多功能一键脚本CFwarp,支持endpoint对端自选IP功能,实时查看当前VPS的IP对ChatGPT与奈飞Netflix的解锁情况
一键脚本:
wget -N --no-check-certificate https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh && bash CFwarp.sh
引自:https://github.com/tyyxuhao/warp-yg?tab=readme-ov-file
阅读剩余部分 →Debian 时区修改
-- 时区列表
timedatectl list-timezones
-- 修改系统时区为亚洲/上海
sudo timedatectl set-timezone Asia/Shanghai
-- 查看
阅读剩余部分 →Debian系统从su切换到root时报错“su: Authentication failure”
方法:
sudo passwd
Password:你当前的密码
Enter new UNIX password:这个是 root 的密码
Retype new UNIX password:重复 root 的密码
但是输入完当前密码之后报如下错误,我的当前用户是appadmin:
appadmin is not in the sudoers file. This incident has been reported to the administrator.
通过终端进入root之后执行如下命令:
usermod -G sudo appadmin
再重新执行
阅读剩余部分 →最近将工作日志迁移至Notion,简单的总结一下。
Notion 是一款功能强大的协作和组织工具,可以用于笔记、项目管理、知识管理等多种用途。以下是一些 Notion 使用技巧的总结:
页面和数据库:
嵌入式内容:
任务管理和日历:
模板的使用:
链接和引用:
页面布局和样式:
同步和分享:
阅读剩余部分 →