Skip to content

Instantly share code, notes, and snippets.

View katorly's full-sized avatar
🎯
Focusing

Katorly katorly

🎯
Focusing
View GitHub Profile
@katorly
katorly / eco-server-order-on-ovhcloud-api.md
Created November 7, 2024 07:53 — forked from adns44/eco-server-order-on-ovhcloud-api.md
Eco server order process with OVHcloud API step-by-step

OVH - How to use the API to order any server? The answer is here!

I ASK YOU IN FIRST

This process is automateable. I'll write the know-how, how to do it. I kindly ask you! Do NOT ABUSE it! Please keep the oportunity to order limited edition servers for other ones!

How the OVH API works?

First of all, OVH provides API libraries to access the API. And for this too, they have an API console where you can try it. For now, we'll see the API console. We'll place an older. Lets go!

/**
* Copyright (c) 2023 Katorly (https://github.com/katorly)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
object textutils {
/**
@katorly
katorly / leap_year.py
Created November 19, 2021 13:58
Check whether a particular year is leap year or not.
while(True):
x = int(input("Please input a particular year:"))
if x % 100 == 0:
if x % 400 == 0:
print(x,"is a leap year!")
elif x % 4 == 0:
print(x,"is a leap year!")
else:
print(x,"is not a leap year!")
@katorly
katorly / test
Created October 6, 2021 13:28
test
test