Skip to content

Instantly share code, notes, and snippets.

View kudaliar032's full-sized avatar
🇮🇩

Aditya Rahman kudaliar032

🇮🇩
View GitHub Profile
@omaryoussef
omaryoussef / Create_Laravel_Pipeline.txt
Last active September 20, 2024 06:12
Creates a Filebeat pipeline to ingest Laravel Monolog/log lines.
PUT _ingest/pipeline/laravel
{
"description": "Parses Laravel log files.",
"processors": [
{
"rename": {
"field": "message",
"target_field": "event.original"
}
},
FROM node:12-alpine as build
# create app Directory
RUN mkdir /app
WORKDIR /app
ENV NUXT_TELEMETRY_DISABLED 1
ENV NODE_OPTIONS "--max_old_space_size=4096"
COPY . /app
@si458
si458 / virt-customize-ubuntu24
Last active April 18, 2025 22:55
virt-customize ubuntu22
#!/bin/sh
# install tools
apt update -y && apt install nano wget curl libguestfs-tools -y
# remove old image
rm -rfv current/noble-server-cloudimg-amd64.img
# remove old template container - WILL DESTROY COMPLETELY
qm destroy 9000 --destroy-unreferenced-disks 1 --purge 1
# download new image
wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
# add agent to image