Giter Site home page Giter Site logo

oracle_arm's Introduction

oracle_arm

oracle arm registration script. 乌龟壳刷ARM脚本 visitors

本脚本优点

简单,主机配置好oci config,然后下载main.tf即可,不用自己解析各种参数,自动设置ssh登陆密码。

20211108更新,参考oci api,脚本全部重写

解决误报的问题.

oci请求几乎无延迟(为了保险起见加了5s的间隔,会自动判断请求返回值动态调整请求时间).

自动获取开机的公网IP,无需登陆后台即可ssh上🐔。

TODO

  • 低配置升级
  • 无需下载公钥可刷
  • 无需配置tf可刷
  • 自动配置ipv6网络
  • 自动设置机器ssh密码

配置oci

安装oci

bash -c "$(curl –L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

一路会车 然后 exec -l $SHELL重启shell

使用 oci -v命令可以查看是否安装成功

配置oci

参考文章大鸟博客-Oracle甲骨文 ARM VPS(VM.Standard.A1.Flex)自动抢购脚本代码中的 步骤 3、复制租户和用户的ocid 和 步骤 4、配置cli 配置好oci和公钥

下载main.tf

参考文章大鸟博客-Oracle甲骨文 ARM VPS自动抢购脚本 – 利用宝塔面板+oci 中的 步骤 1、生成main.tf 即可,下载到本地并解压出main.tf文件

脚本需要改的地方

启动 tg推送

修改

USE_TG = False  # 如果启用tg推送 要设置为True
TG_BOT_TOKEN = ''  # 通过 @BotFather 申请获得,示例:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw
TG_USER_ID = ''  # 用户、群组或频道 ID,示例:129xxx206 ,

USE_TG=True 其他的token和id自行配置自己的,id可以点击这个机器人获取

开始推送和创建成功的推送demo:

推送

最新版本成功的反馈(刚出新加坡的时候) 推送 推送

地狱春川 推送 推送

运行脚本

git clone https://github.com/n0thing2speak/oracle_arm

cd oracle_arm

pip3 install -r requirements.txt

上传 main.tf 文件到 oracle_arm 目录

首先运行一遍测试一下 python3 oracle_arm.py main.tf 稍等一下看返回结果,如果显示抢注中,xxxxx 就说明脚本没有问题

nohup python3 oracle_arm.py main.tf >> /dev/null 2>&1 &

如果想保存一个日志,可以运行下面这个命令运行:

nohup python3 oracle_arm.py main.tf > oracle_arm.log 2>&1 &

会自动停止的,不用管了。Done and enjoy 🎉

再次感谢

感谢 大鸟博客 最先放出刷ARM脚本,本脚本只是懒的解析参数并不想忍受oci terminal糟糕的响应速度不得已而写。

oracle_arm's People

Contributors

n0thing2speak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.