Skip to content

Instantly share code, notes, and snippets.

View marcofranssen's full-sized avatar
🏠
Diving into code

Marco Franssen marcofranssen

🏠
Diving into code
View GitHub Profile
@radu-matei
radu-matei / spinkube-pi.md
Last active April 11, 2024 06:46
Setting up SpinKube on a Raspberry Pi cluster with k3s

This is a 5-node Raspberry Pi 5 cluster, assembled from PicoCluster, with an integrated power source and 8-port network switch and cooling fan.

This means it can be plugged in to power with a single power cable, and you can connect to any of the 5 boards using a single ethernet cable.

image

The goal of this tutorial is to configure the Pi cluster to run Kubernetes. To do so, we need to:

  • install an operating system on all the nodes
  • enable cgroups to run containers on each node
@clemensv
clemensv / gist:3853572
Created October 8, 2012 16:56
Writes
namespace Writing
{
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
class Program
{
static void Main(string[] args)
@yevhen
yevhen / SpecificationFixture.cs
Created July 27, 2011 15:26
NUnit support for Greg Young's Simple.Testing "framework"
[TestFixture]
public class SpecificationFixture
{
[Test, TestCaseSource("GetSpecificationTestCases")]
public void Verify(SpecificationToRun spec)
{
var runner = new SpecificationRunner();
RunResult result = runner.RunSpecifciation(spec);
if (result.Passed)
@ntulip
ntulip / HtmlSanitizer.cs
Created February 7, 2011 14:22
HTML Sanitizer for C#
/**
Copyright (c) 2009 Open Lab, http://www.open-lab.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: