Skip to content

Instantly share code, notes, and snippets.

Working from home

Maxime Rouiller MaximRouiller

Working from home
View GitHub Profile
MaximRouiller / FunctionNames.txt
Last active Oct 25, 2021
Visual Studio .NET Azure Functions Regex - Name Convention
View FunctionNames.txt
MaximRouiller / copyUrlToAzureStorage.js
Created Dec 3, 2020
Automatically download files to Azure Blob Storage using Copy From URL API with node
View copyUrlToAzureStorage.js
// Required Package: @azure/storage-blob and dotenv
// API Docs:
const { BlobServiceClient } = require('@azure/storage-blob');
const path = require('path');
let now = new Date();
MaximRouiller /
Last active Dec 3, 2020
Automatically download files to Azure Blob Storage using Copy From URL API with Python
import os
from import BlobServiceClient, BlobClient, ContainerClient
from datetime import datetime
from urllib.parse import urlparse
# Required package: azure-storage-blob
# API Docs:
now =
connection_string = os.getenv('AZURE_CONNECTION_STRING')
MaximRouiller / Program.cs
Last active Nov 27, 2020
Automatically download files to Azure Blob Storage using Copy From URL API with C#
View Program.cs
using Azure.Storage.Blobs;
using System;
using System.IO;
using System.Threading.Tasks;
namespace ConsoleApp2
class Program
// Required .NET Package: Azure.Storage.Blobs version >=12
MaximRouiller / feeds.txt
Created Jul 6, 2020
.NET focused blog feeds
View feeds.txt
MaximRouiller / WhatsNewBotFunctions.cs
Last active Jun 4, 2020
In C#, create a fork, sync its master with an upstream , create a branch, commit a file, then finally create a PR on the upstream
View WhatsNewBotFunctions.cs
string githubToken = Environment.GetEnvironmentVariable("GitHubKey", EnvironmentVariableTarget.Process);
const string owner = "dotnet";
string user = "WhatsNewBot";
string repo = "docs";
var date = DateTime.UtcNow.ToString("yyyyMMdd-HHmmss");
string branchName = $"whats-new-{date}";
string filename = $"{DateTime.UtcNow:yyyy-MM-dd}.md";
var client = new HttpClient();
View deployment.json
"$schema": "",
"contentVersion": "",
"parameters": {
"resourceNameSuffix": {
"defaultValue": "deployment",
"type": "String"
"variables": {
MaximRouiller / Dockerfile
Created Feb 21, 2019
NodeJS Multistage Dockerfile
View Dockerfile
#build stage for a Node.js application
FROM node:lts-alpine as build-stage
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
#production stage
FROM nginx:stable-alpine as production-stage
View pullrepo.ps1
Param (
[Parameter(Mandatory = $true)]
$RepositoryName = $RepositoryUrl.Split('/')[4]
git clone $RepositoryUrl
cd $RepositoryName
git checkout -b repositoryurl
MaximRouiller / Program.cs
Last active Dec 6, 2021
GitHub API access with Personal Access Token using C# HttpClient and .NET Core
View Program.cs
public class Program
public static void Main(string[] args)
public static async Task ExecuteAsync()