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 / 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]

[Initial draft, adapted from Mike Bowler, @mike_bowler and Dave Nicolette, @DaveNicolette]

Pair Programming Styles

Driver-Navigator The driver is at the keyboard, and takes a tactical view of the problem. The navigator observes and takes a strategic view of the problem, offering suggestions and asking questions. The roles may switch back and forth as needed, depending on how the work flows and how the interaction between the two people works

Useful for general development and for knowledge/skill transfer. When used for knowledge/skills transfer, the junior member takes the driver role and the senior member takes the navigator role

Ping-Pong

@profnandaa
profnandaa / script-on-reboot.md
Last active August 15, 2017 18:03
Server Recipes

One approach is to add an @reboot cron [1] task:

  1. Running crontab -e will allow you to edit your cron.

  2. Adding a line like this to it:

     @reboot /path/to/script
    

    will execute that script once your computer boots up.