Skip to content

Instantly share code, notes, and snippets.

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

Mateusz Łoskot mloskot

🏠
Working from home
View GitHub Profile
@mloskot
mloskot / git_lfs_calculate_size_by_type.py
Last active April 12, 2024 10:57
Count Git LFS objects and their sizes, total and per file type
#!/usr/bin/env python
# Counts Git LFS objects and per file type, and calculates total sizes.
import os
import sys
import tempfile
print('Collecting sizes of Git LFS objects')
tmp_file = os.path.join(os.getcwd(), 'tmp_sizes.tx')
os.system('git lfs ls-files --long --size > {0}'.format(tmp_file))
@mloskot
mloskot / training-gmb-handstand.md
Last active February 17, 2024 16:53
Handstand Tutorial and Progression by GMB
@mloskot
mloskot / cheat-tmux.markdown
Created December 14, 2012 13:11
tmux key bindings cheat shee

$ cheat tmux

Managing tmux sessions

$ tmux      # start tmux server
$ tmux at   # attach running sessions to a terminal
$ tmux ls # list running tmux sessions
@mloskot
mloskot / quo-vadis-swdt.md
Last active January 5, 2024 20:52
Quo Vadis SWDT?
Author E-mail
Mateusz Loskot (aka mloskot)
mateusz@loskot.net

Quo Vadis SWDT?

Follow-up to SIG-Windows weekly meeting from Jan 2, 2024, this is my brainstorm of ideas and issues about the state and future of SWDT. It turned out to be not as structured and systematic as I wished, apologies

@mloskot
mloskot / learning-cni-and-kubernetes-networking.md
Last active December 28, 2023 19:28
Learning CNI and Kubernetes Networking

Learning CNI and Kubernetes Networking

Apparently, after a while of using Kubernetes, everyone comes to the point realisation there is a need to dive into CNI and the overall networking deeper. So, here is my diving kit:

@mloskot
mloskot / learning-libvirt.md
Last active December 21, 2023 12:39
Learning libvirt

Learning libvirt

Random list of resources I've found informative during my learning of libvirt and related technologies from a software developer perspective and Go learner too as prep for an exciting git using libvirt and Go.

@mloskot
mloskot / keybase.md
Created November 26, 2023 14:04
keybase.md

Keybase proof

I hereby claim:

  • I am mloskot on github.
  • I am mloskot (https://keybase.io/mloskot) on keybase.
  • I have a public key ASB6U39K8N-0OmDBs5m6z45gfB8-OHEADHJC4bb44rwiogo

To claim this, I am signing this object:

@mloskot
mloskot / postgis_formats_test.sql
Last active September 30, 2023 16:19
SQL script to quickly generate and test PostGIS geometry formats in pgAdmin
-- SQL script to quickly generate and test PostGIS geometry formats in pgAdmin
SELECT
ST_AsText(g),
--ST_AsGeoJSON(g),
encode(ST_AsBinary(g), 'hex')
FROM (SELECT
------------ EMPTY by PostGIS and SQL Server:
------------ http://blog.cleverelephant.ca/2010/03/nothing-nada-zip-bupkus.html
------ OGC 1.0
--'POINT EMPTY'::geometry --"010400000000000000"
@mloskot
mloskot / build-geos-with-cmake-vs2019.md
Last active August 17, 2023 13:51
Building GEOS with CMake and Visual Studio on Windows

Building GEOS with CMake and Visual Studio 2019 on Windows

Learn about CMake drivers

  • cmake to configure and build
@mloskot
mloskot / run-swdt-master-windows-native.log
Last active April 29, 2023 13:12
Test run of https://github.com/kubernetes-sigs/sig-windows-dev-tools/pull/266 with current default settings.yaml in master-windows-native branch
$▶ mage | tee.exe x.log
Running dependency: main.Config.Settings
Running dependency: Fetch
[swdt-mage] --- Begin of configuration from settings.yaml ------------
calico:
calico_version: 3.25.0
kubernetes:
kubernetes_build_from_source: false
kubernetes_version: "1.26"
network: