Skip to content

Instantly share code, notes, and snippets.

View byteshiva's full-sized avatar
🎯
Focusing

Siva byteshiva

🎯
Focusing
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
@quad
quad / 0-unnamed-architecture.md
Last active April 14, 2024 05:45
What is this architecture called?

What is this architecture called?

I rarely see the classical three-tier architecture in the wild; I frequently see a different architecture.

I don't know this architecture's name. Do you?

The Three-Tier Architecture

The "three-tier architecture" has been the reference pattern for Internet services:

New Year Gift - Curated List of Top 75 LeetCode Questions to Save Your Time

Facebook / Eng tech lead

140 Comments

New Year Gift to every fellow time-constrained engineer out there looking for a job, here's a list of the best LeetCode questions that teach you core concepts and techniques for each category/type of problems! Many other LeetCode questions are a mash of the techniques from these individual questions. I used this list in my last job hunt to only do the important questions.

Good luck and Happy New Year!

Array

@olafhartong
olafhartong / 2021-1675-spooler-imageloads.kql
Last active August 3, 2021 17:34
2021-1675 - PrintNightmare KQL - MDE
let serverlist=DeviceInfo
| where DeviceType != "Workstation"
| distinct DeviceId;
let suspiciousdrivers=DeviceImageLoadEvents
| where DeviceId in (serverlist)
| where FolderPath startswith @"c:\windows\system32\spool\drivers"
| distinct SHA1
| invoke FileProfile(SHA1, 1000)
| where GlobalPrevalence < 50 and IsRootSignerMicrosoft != 1 and SignatureState != "SignedValid";
suspiciousdrivers
@pedromfedricci
pedromfedricci / Dockerfile.rust-wasm-js
Last active October 3, 2021 12:35
Dockerfile for working with Rust and WebAssembly.
ARG RUST_IMAGE=rust:1.52.1
FROM $RUST_IMAGE AS install-sys-pkgs
RUN apt-get update \
&& \
apt-get install -y --no-install-recommends \
# Z shell is a customizable Unix shell.
zsh \
# Install node & npm.
#!/bin/bash
# Create a script that enters a pids namespace and sets its environment variables, e.g. enter a docker container without `docker exec`
echo "sudo /usr/bin/nsenter --target \$1 --mount --uts --ipc --net --pid env -i - \$(sudo cat /proc/\$1/environ | xargs -0) bash" > enterDocker.sh; chmod +x enterDocker.sh;
@ines
ines / Install
Last active September 21, 2023 17:14
Streamlit + spaCy
pip install streamlit
pip install spacy
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download de_core_news_sm
@erogol
erogol / tts_example.ipynb
Last active July 5, 2024 04:27
TTS_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vianpl
vianpl / bpf_usb_error_injection.txt
Created November 14, 2018 16:45
eBPF USB atomic alloction error injection
USB ATOMIC ALLOCATION ERROR INJECTION
Prerequisites:
- Install bcc and bcc-tools, this patch https://github.com/iovisor/bcc/pull/2044
is needed
- The BCC tools are available at: /usr/share/bcc/tools
- Boot with the latest KOTD-debug kernel which has CONFIG_BPF_KPROBE_OVERRIDE
enabled
@fasiha
fasiha / no-hackerrank.md
Last active August 7, 2023 11:47
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Well, that was unexpected. In the following, I’m trying to follow Jon Evans’ advice from “The Terrible Technical Interview”.


To: recruitment@EmployerABC.com
From: Ahmed Fasih
Subject: Re: Programming Test Invitation

Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.