Skip to content

Instantly share code, notes, and snippets.

View alanlu-tw's full-sized avatar
😼

Alan Lu alanlu-tw

😼
View GitHub Profile
# VS Code Insiders Tunnel Fix Script
$baseDir = "$env:LOCALAPPDATA\Programs\Microsoft VS Code Insiders"
$mainBin = "$baseDir\bin"
# 找出所有版本目錄(類似 2d69e225bf 的格式)
Get-ChildItem $baseDir -Directory | Where-Object { $_.Name -match "^[a-f0-9]{10}$" } | ForEach-Object {
$versionBin = "$($_.FullName)\bin"
if (-not (Test-Path "$versionBin\code-tunnel-insiders.exe")) {
Write-Host "Fixing: $versionBin"
New-Item -ItemType Directory -Path $versionBin -Force | Out-Null
@alanlu-tw
alanlu-tw / eco-server-order-on-ovhcloud-api.md
Created November 20, 2024 10: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!