Skip to content

Instantly share code, notes, and snippets.

View cybernetics's full-sized avatar

Rajkumar Singh cybernetics

  • American Airlines
  • Tempe, AZ 85281, USA
  • 05:03 (UTC -07:00)
  • X @quanta007
View GitHub Profile
@dims
dims / README.md
Last active September 5, 2025 09:01
Kubernetes Resources

Cheat sheet: JavaScript Array methods

Deriving a new Array from an existing Array:

['■','●','▲'].slice(1, 3)           ['●','▲']
['■','●','■'].filter(x => x==='■')  ['■','■']
    ['▲','●'].map(x => x+x)         ['▲▲','●●']
    ['▲','●'].flatMap(x => [x,x])   ['▲','▲','●','●']
# Source: https://gist.github.com/2dbb2f8683e661eaf0446f10b6974efb
###################################################################
# How To Create Virtual Kubernetes Clusters With vcluster By loft #
# https://youtu.be/JqBjpvp268Y #
###################################################################
# Referenced videos:
# - Multi-Tenant Kubernetes Cluster With Capsule: https://youtu.be/H8bzEJN7fj8
import kotlinx.coroutines.launch
import kotlinx.coroutines.newSingleThreadContext
import kotlinx.coroutines.runBlocking
// inspired by: https://dzone.com/articles/print-even-and-odd-numbers-using-two-threads-compl
// You can run this in a Kotlin REPL
fun main() = runBlocking {
(1..100).forEach {
@davidfowl
davidfowl / MinimalAPIs.md
Last active September 25, 2025 20:44
Minimal APIs at a glance
@mpetuska
mpetuska / JSObj.kt
Created October 14, 2021 10:49
Fluent Kotlin DSL for building JSON trees
@DslMarker
annotation class JSBuilderDsl
@DslMarker
annotation class JSSetterDsl
data class JSObj(val map: MutableMap<String, Any?> = mutableMapOf()) : MutableMap<String, Any?> by map {
object Arr {
@JSBuilderDsl
operator fun get(vararg items: Any?) = items
@jnorthrup
jnorthrup / JSObj.kt
Last active October 15, 2021 03:31 — forked from mpetuska/JSObj.kt
Fluent Kotlin DSL for building JSON trees
@DslMarker
annotation class JSBuilderDsl
@DslMarker
annotation class JSSetterDsl
data class JSObj(val map: MutableMap<String, Any?> = linkedMapOf()) : MutableMap<String, Any?> by map {
object Arr {
@JSBuilderDsl
@MadhavJivrajani
MadhavJivrajani / k8s-horizontals-getting-started.md
Created October 15, 2021 13:58
This is a list of resources that I personally found helpful while trying to understand containers and kubernetes from a big-picture POV.

Getting Started With Kubernetes On A High Level

One of biggest barriers when trying to get started with Kubernetes is that there's so much content out there that it's kinda overwhelming - and that's totally normal! The intent of this document is to try and provide directed resources in a roadmap like fashion to understand and learn about the horizontals of Kubernetes - post which you can dive deep into any vertical while keeping the bigger picture in mind - that this document hopes to provide.

This is a set of resources for different topics that I found particularly helpful when getting started, and hopefully you do too! I've tried to list them out in order of consumption. If A comes before B under a subtopic, then it's probably that A has topics needed for B, or that A attempts to explain topics of B in a slightly simpler (not nescessarily better) manner than B.

Containers

Feel free to skip over if you're already familiar with containers and have some idea about what they are and why they exist.

@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active October 14, 2025 08:35
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@altavir
altavir / matrix-multiplication-server.ipynb
Last active December 29, 2021 07:54
A simple matrix mulitplication server inside kotlin notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.