Skip to content

Instantly share code, notes, and snippets.

View cybernetics's full-sized avatar

Rajkumar Singh cybernetics

  • American Airlines
  • Tempe, AZ 85281, USA
  • 18:06 (UTC -07:00)
  • X @quanta007
View GitHub Profile
@cybernetics
cybernetics / matrix-multiplication-server.ipynb
Created December 29, 2021 07:54 — forked from altavir/matrix-multiplication-server.ipynb
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.
@cybernetics
cybernetics / 20211210-TLP-WHITE_LOG4J.md
Created December 19, 2021 12:27 — forked from SwitHak/20211210-TLP-WHITE_LOG4J.md
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-18 0018 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
@cybernetics
cybernetics / gadt.md
Created December 8, 2021 08:31 — forked from smarter/gadt.md
GADTs in Scala

Generalized Algebraic Data Types in Scala

Basic GADTs

Here's an ADT which is not a GADT, in Haskell:

data Expr = IntExpr Int | BoolExpr Bool
@cybernetics
cybernetics / ipv6-regex-test.sh
Created November 30, 2021 05:48 — forked from syzdek/ipv6-regex-test.sh
Simple script to test my IPv6 regular expression.
#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \
{"lastUpload":"2021-10-31T10:17:05.359Z","extensionVersion":"v3.4.3"}
@cybernetics
cybernetics / web-servers.md
Created October 18, 2021 20:17 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@cybernetics
cybernetics / k8s-horizontals-getting-started.md
Created October 16, 2021 09:00 — forked from MadhavJivrajani/k8s-horizontals-getting-started.md
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.

@cybernetics
cybernetics / JSObj.kt
Created October 15, 2021 03:31 — forked from jnorthrup/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
@cybernetics
cybernetics / JSObj.kt
Created October 15, 2021 03:29 — 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?> = mutableMapOf()) : MutableMap<String, Any?> by map {
object Arr {
@JSBuilderDsl
operator fun get(vararg items: Any?) = items
@cybernetics
cybernetics / cloudos.md
Created September 25, 2021 13:38 — forked from swyxio/cloudos.md
Cloud Operating Systems and Reconstituting the Monolith. tweet responses: https://twitter.com/swyx/status/1226257539886669825?s=20