Skip to content

Instantly share code, notes, and snippets.

View Gutek's full-sized avatar

Jakub Gutkowski Gutek

View GitHub Profile
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@Gutek
Gutek / books.md
Created February 18, 2021 22:30
2021-02-18 - Cloubhouse, books and links from meeting
@Gutek
Gutek / C# Version Cheat Sheet.md
Last active February 8, 2022 09:33
Short cheat sheet of changes in C# language from version 6 to 9

CS 6

read-only auto properties

Small help with immutable types...

// private readonly int _age;
// public int Age { get { return _age; } }
public int Age { get; }
apiVersion: v1
kind: Namespace
metadata:
name: samples
---
apiVersion: v1
kind: ConfigMap
metadata:
name: sample-api-cm
namespace: samples
@Gutek
Gutek / presentation.vssettings
Created May 9, 2017 08:50
Presentation settings for Visual Studio 2015
<?xml version="1.0" encoding="UTF-8"?>
<UserSettings>
<ApplicationIdentity version="14.0" />
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment" />
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
@Gutek
Gutek / SQL_EF_query_Page_1
Last active March 8, 2016 13:44
These two queries (generated by EF) returns same set of data (exactly). However if you change sorting from `AssessmentTypeName` to `ParameterName` paging works as expected. any ideas why?
SELECT
[Project1].[AutomatedComplianceAssessmentId] AS [AutomatedComplianceAssessmentId],
[Project1].[AssessmentTypeCode] AS [AssessmentTypeCode],
[Project1].[AssessmentTypeName] AS [AssessmentTypeName],
[Project1].[EmissionPointId] AS [EmissionPointId],
[Project1].[EmissionPointCode] AS [EmissionPointCode],
[Project1].[ParameterMatrixName] AS [ParameterMatrixName],
[Project1].[ParameterId] AS [ParameterId],
[Project1].[ParameterName] AS [ParameterName]
FROM ( SELECT
@Gutek
Gutek / feed_finder.fs
Created March 1, 2016 14:58
Finds RSS feeds for bogs
open System.IO
open FSharp.Data
let readLines filePath = File.ReadAllLines(filePath);;
let downloadWebAsync (links:seq<string>) =
links
|> Seq.map HtmlDocument.AsyncLoad
let castToOption (linkElements:seq<HtmlNode>) =
@Gutek
Gutek / HowTo
Created December 12, 2013 10:12
Jak pobrać historię z konta walutowego - firmowego w mbank
1 Zaloguj sie
2 Zmien profil na firmowy
3 Kliknij na historie
4 Kliknij na zmien widok (gorny prawy rog pod menu)
5 Wybierz konto
6 Wybierz przedzial czasowy
7 przeszukaj
8 wejdz w szczegoly tranzakcji
9 Pobierz PDFa
@Gutek
Gutek / makeebooks
Created August 23, 2012 17:06
CQRS Journey Makeebooks
#!/usr/bin/env ruby
# This script convers markdown book to one of the serveral e-book
# formats supported with calibre (http://calibre-ebook.com)
#
# Samples:
#
# Build e-book for amazon kindle
# $ make-ebook
# or
# $ FORMAT=mobi make-ebook