Skip to content

Instantly share code, notes, and snippets.

View Rafisto's full-sized avatar
🎸
training guitar :p

Rafał Włodarczyk Rafisto

🎸
training guitar :p
View GitHub Profile
@Rafisto
Rafisto / powershell-query.md
Created November 27, 2023 18:57
Single modify creation and last write time of a file via PS

Commands to modify a single file

(Get-Item "<file_path>").CreationTime=("3 August 2019 17:00:00")
(Get-Item "<file_path>").LastWriteTime=("3 August 2019 17:00:00")
(Get-Item "<file_path>").LastAccessTime=("3 August 2019 17:00:00")

exercise: now do it for every file in a directory and subdirectories. Tip. use recursion.

@Rafisto
Rafisto / docker-env.md
Created February 12, 2024 20:39
ENVs for `docker` and `docker compose`

On the fly ENVs for Docker containers.

Define environment variables, which are then used within the container during runtime. The innerscript.sh script echoes the values of these variables. When running the container, environment variables can be overridden using the --env flag.

  1. Dockerfile:
FROM ubuntu:latest

SSH Tunneling example with Docker

docker compose up -d
docker exec -it 6af7afd6e6b1 /bin/bash
ssh -L 80:localhost:80 root@ubuntu2
Ubuntu image with SSH Server and Apache
@Rafisto
Rafisto / pxe-boot.md
Last active July 7, 2024 17:28
pxe-boot

How to easily setup PXE boot for cluster provisioning

This guide will show you how to setup a PXE boot server to provision a cluster of machines. For the sake of this guide, we will be using system agnostic docker containers to simulate the DHCP and the PXE boot server.

Featured technologies:

PXE boot description

@Rafisto
Rafisto / README.md
Last active June 25, 2024 16:39
A brief look at falcosecurity

Falco Quickstart Guide

Falco is an open-source runtime security tool specifically designed for Kubernetes environments.

Key Features of Falco:

  • Runtime Security Monitoring: Observes system calls to detect and alert on unexpected behavior.
  • Kubernetes Native: Integration (via kmod/eBPF) with OS, container environments and kubernetes. Specific rules available.
  • Alerting: Push to alerting systems like Slack