Skip to content

Instantly share code, notes, and snippets.

View MaStr11's full-sized avatar
🏠
Working from home

Martin Strecker MaStr11

🏠
Working from home
View GitHub Profile
@MaStr11
MaStr11 / SyncUsersWithAzure.py
Last active April 20, 2017 14:17
Python Script for synchronizing user from Azure AD to a synology diskstation
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Script for synchronizing user from Azure AD to a synology diskstation.
#
# requirements:
# grampg: for password generation https://pypi.python.org/pypi/grampg/0.3.0
# requests: for Microsoft Graph API Requests http://docs.python-requests.org
#
# How it works
@MaStr11
MaStr11 / Program.cs
Last active December 19, 2017 12:09
AdHocWorkspace for Roslyn
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
using System.Linq;
using System;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class Program
@MaStr11
MaStr11 / Program.cs
Created January 22, 2018 16:07
Hascode test
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp3
{
// Needs to be compiled with as x64
class Program
{
public static int CombineHashes(int hash1, int hash2)
@MaStr11
MaStr11 / Program.cs
Created September 16, 2020 13:08
Operator and indexer completion sample
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace ConsoleApp1
{
enum WeightMeasure
{
g,
kg
}
@MaStr11
MaStr11 / Badges.md
Last active February 9, 2021 17:46