Skip to content

Instantly share code, notes, and snippets.

View ridercz's full-sized avatar
🇨🇿

Michal Altair Valášek ridercz

🇨🇿
View GitHub Profile
@ridercz
ridercz / keybase.md
Created July 12, 2018 11:47
Keybase proof

Keybase proof

I hereby claim:

  • I am ridercz on github.
  • I am ridercz (https://keybase.io/ridercz) on keybase.
  • I have a public key ASAHzRzIu8FjooJ67Avq-ksBi3C0TD8SBxZBOc5A4iB1rwo

To claim this, I am signing this object:

@ridercz
ridercz / Downloads.cs
Created January 26, 2018 10:08
Sync/Parallel/Async file download
using System;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
namespace Downloads {
class Program {
static void Main(string[] args) {
var urls = new string[] {
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main() {
// Test data
byte[] prefix = { 0xDE, 0xAD, 0xBE, 0xEF }; // 4 bytes
byte[] block1 = { 0xAA, 0xAA, 0xAA, 0xAA }; // 4 bytes
byte[] block2 = { 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, }; // 8 bytes
@ridercz
ridercz / AcmePOC.cs
Last active January 15, 2017 17:14
Certes ACME client POC
using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Certes;
using Certes.Acme;
using Certes.Pkcs;
namespace AcmePOC {
@ridercz
ridercz / KurzyCnb.cs
Last active February 15, 2021 13:09
Class to process exchange rates of Czech National Bank (CNB), including historic data and sample console application.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Net;
using System.Threading.Tasks;
namespace Altairis.KurzyCnb {
class Program {
static void Main(string[] args) {
#!/bin/sh
### BEGIN INIT INFO
# Provides: <SCRIPT_NAME>
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Script to run asp.net 5 application in background
### END INIT INFO