Skip to content

Instantly share code, notes, and snippets.

View Aha43's full-sized avatar
🤣

Arne Halvorsen Aha43

🤣
View GitHub Profile
@henrikj242
henrikj242 / GoogleCloudStorageFileExhange.cs
Last active January 29, 2024 20:43
Use the Google Cloud API to upload and download files to/from a bucket using explicit authentication in a C# app.
using Google.Apis.Auth.OAuth2; // Google.Apis.Auth --version 1.30.0
using Google.Cloud.Storage.V1; // Google.Cloud.Storage.V1
using System;
using System.IO;
using System.Runtime.InteropServices;
using static System.Console;
public static class Program
{
public static void Main(string[] args)
@da9l
da9l / paketpsbootstrap_github
Last active January 18, 2021 17:36
paket bootstrap in powershell
#Downloads latest paket.bootstrapper.exe from github
$urlbase = "https://github.com"
$latestPage="$urlbase/fsprojects/Paket/releases/latest"
Write-Host "Parsing latest release page: $latestPage"
$page=Invoke-Webrequest -uri $latestPage
$latestBootStrapper=($page.Links | Where-Object { $_.href -match "bootstrapper" }).href
$dlurl="$urlbase$latestBootStrapper"
Write-Host "Downloading paket.bootstrapper.exe from $dlurl"