Skip to content

Instantly share code, notes, and snippets.

View profnandaa's full-sized avatar
馃檭
/dev

Anthony Nandaa profnandaa

馃檭
/dev
View GitHub Profile
@profnandaa
profnandaa / pastebins.md
Last active September 26, 2024 08:23
Quick Pastebins

Format:

go test -v --run=TestIntegration/TestExportedImageLabels/worker=containerd
@profnandaa
profnandaa / cni-setup-legacy.ps1
Last active February 21, 2024 06:31
Windows container networking [wip]
#
# this is work in progress
# the following script was from Gabriel
# will modify it to run with the v1.0.0 CNI spec.
#
$ErrorActionPreference="Stop"
$containerdDir = join-path $env:ProgramFiles containerd
$ErrorActionPreference="Stop"
$containerdDir = join-path $env:ProgramFiles containerd
if (!(Test-Path $containerdDir)){
mkdir $containerdDir
}
$downloadPath = Join-Path $env:Tmp "containerd.tar.gz"
$downloadLink = "https://github.com/containerd/containerd/releases/download/v1.7.5/containerd-1.7.5-windows-amd64.tar.gz"

Installing buildkit on Windows from source

This will set up buildkitd natively on Windows Server 2019 (ltsc2019) or Windows Server 2022 (ltsc2022).

Enable the containers feature

This will reboot your server if the feature is not already installed.

Install-WindowsFeature -Name containers -Restart
@profnandaa
profnandaa / from_gabriel.txt
Created August 24, 2023 15:18
Setup Buildkit on Windows
quick instructions
==================
you will need https://github.com/containerd/containerd/releases/tag/v1.7.3
installed and running with default config
you will also need a proper CNI installed
@profnandaa
profnandaa / The Technical Interview Cheat Sheet.md
Last active March 22, 2021 09:38 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@profnandaa
profnandaa / 01-pointers-dimistified-intro.md
Last active October 21, 2023 03:55
Pointers Dimistified - "From Zero to Hero"

C/C++ Pointers Dimistified

Pointers are variables that store the address of another variable.

add diagram here

Outline:

  • Declaring pointers
  • Dereferencing pointers
  • Pointers and Arrays
@profnandaa
profnandaa / VSCode_Extensions.md
Last active January 17, 2020 09:28
My VSCode Extensions
@profnandaa
profnandaa / 1-list-comprehension.hs
Created October 1, 2017 16:57
Pearls from Haskell code snipets
s = [x*2 | x <- [1..10]]
-- s = [2,4,6,8,10,12,14,16,18,20]