Skip to content

Instantly share code, notes, and snippets.

View TomDu's full-sized avatar
🎯
Focusing

Sizhong Du TomDu

🎯
Focusing
  • Microsoft
  • Shanghai
View GitHub Profile
@jirolabo
jirolabo / HttpClientCoreSapmle.cs
Created March 27, 2019 12:58
HttpClientFactory for console application
using System.Net.Http;
using Microsoft.Extensions.DependencyInjection;
namespace ConsoleApp1
{
// Install-Package Microsoft.Extensions.DependencyInjection
// Install-Package Microsoft.Extensions.Http
class HttpClientCoreSapmle
{
@rcoup
rcoup / blocksync.py
Last active May 8, 2024 09:30
Block device sync between remote hosts. Based off http://www.bouncybouncy.net/programs/blocksync.py
#!/usr/bin/env python
"""
Synchronise block devices over the network
Copyright 2006-2008 Justin Azoff <[email protected]>
Copyright 2011 Robert Coup <[email protected]>
License: GPL
Getting started: