Skip to content

Instantly share code, notes, and snippets.

View AleksanderGondek's full-sized avatar

Aleksander Gondek AleksanderGondek

View GitHub Profile
@AleksanderGondek
AleksanderGondek / yocto2oci.sh
Created February 27, 2024 13:26 — forked from r2r-dev/yocto2oci.sh
yocto2oci
#!/usr/bin/env bash
# USAGE: ./yocto2oci.sh <sdk>
# where sdk is a yocto-generated installer
# example sdk: https://downloads.yoctoproject.org/releases/yocto/yocto-4.0.16/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-ppc7400-qemuppc-toolchain-ext-4.0.16.sh
set -e
ALGORITHM="sha256"
BUILD_DIR="build"
BLOBS_DIR="$BUILD_DIR/blobs/$ALGORITHM"
@AleksanderGondek
AleksanderGondek / introrx.md
Created November 6, 2022 16:59 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@AleksanderGondek
AleksanderGondek / README.md
Created May 12, 2021 13:57 — forked from akihikodaki/README.en.md
Linux Desktop on Apple Silicon/M1 in Practice

Linux Desktop on Apple Silicon/M1 in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon/M1.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

@AleksanderGondek
AleksanderGondek / .gitignore
Created March 31, 2019 13:52 — forked from datakurre/.gitignore
Minimal Nix Docker
*.tar.gz
.sentinel.*
@AleksanderGondek
AleksanderGondek / preprocessor_fun.h
Created February 15, 2017 17:53 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
using Ninject.Modules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using System.Web.Http.Dependencies;
// A small Library to configure Ninject (A Dependency Injection Library) with a WebAPI Application.
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
public class NinjectDependencyScope : IDependencyScope
{
private IResolutionRoot resolver;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Web.Http.Dependencies;
using Ninject;
using Ninject.Syntax;
public class NinjectDependencyScope : IDependencyScope
{
private IResolutionRoot resolver;