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 / ExcludeExplicitO365Endpoint.cmd
Created November 18, 2019 16:51
Exclude Office 365 from Outlook 16.0 autodiscovery
@ECHO OFF
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
@ridercz
ridercz / House-animated.scad
Last active November 14, 2023 01:22
OpenSCAD House
/*****************************************************************************
** OpenSCAD Example Code by Michal Altair Valasek - https://www.rider.cz **
** Licensed under terms of Creative Commons Attribution License (cc-by) **
** https://creativecommons.org/licenses/by/4.0/ **
*****************************************************************************/
base_width = 40; // X
base_depth = 30; // Y
base_height = 20; // Z
wall = 1;
@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[] {
@ridercz
ridercz / Program.cs
Last active May 9, 2022 21:09
Using Hangfire in ASP.NET Core 6.0
/* This is sample code for the following video: https://youtu.be/36p2-gr_iYk
* The following NuGet packages are needed:
* Hangfire
* Hangfire.AspNetCore
* Hangfire.SqlServer
*/
using Hangfire;
var builder = WebApplication.CreateBuilder(args);
@ridercz
ridercz / BridleTag.scad
Created March 8, 2022 01:36
Jmenovky na ohlávky v OpenSCADu
/* [Preview] */
base_color = "#333";
text_color = "#ddd";
/* [Text] */
// Displayed text
text = "ALTAIR";
// Displayed text font
text_font = "Arial Rounded MT Bold";
// Nominal font size
@ridercz
ridercz / gopro.scad
Last active February 8, 2022 15:47
GitHub mount library for OpenSCAD
/****************************************************************************
* Altair's GoPro mounts library for OpenSCAD version: 1.0.0 (2021-04-16) *
* Copyright (c) Michal A. Valasek, 2021 license: CC BY-NC-SA 4.0 *
* ------------------------------------------------------------------------ *
* www.rider.cz * www.altair.blog *
****************************************************************************/
// Demo
$fn = 16;
color("#cc3333") gopro_mount_f();
@ridercz
ridercz / privesky.scad
Created October 2, 2021 12:10
Generování přívěšků s čísly
/* [Tag options] */
diameter = 30;
thickness = 2;
extrusion = 1;
rim_width = 1.67;
hole_diameter = 4;
/* [Plater options] */
tag_start_number = 1;
tag_rows = 6;
@ridercz
ridercz / Altair-General.snippet
Created September 30, 2021 13:38
Visual Studio Code Snippets
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Insert input model subclass</Title>
<Author>Michal A. Valasek</Author>
<Shortcut>imodel</Shortcut>
</Header>
<Snippet>
<Code Language="csharp" Delimiter="$"><![CDATA[[BindProperty]
@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) {
@ridercz
ridercz / vzpera.scad
Created January 14, 2021 01:17
Vzpěra na židli
include <A2D.scad>; // https://github.com/ridercz/A2D
assert(a2d_required([1, 6, 0]), "Please upgrade A2D library to version 1.6.0 or higher.");
/* [General] */
height = 15;
main_hole_size = [35.5, 42.5];
prop_hole_size = [40, 15];
wall_thickness = 6;
radius = 3;