Skip to content

Instantly share code, notes, and snippets.

- name: Overprovision like the pros'
hosts: all
tasks:
- name: Install early OOM killer and zram
ansible.builtin.apt:
pkg:
- earlyoom
- zram-tools
- name: Configure early OOM killer
ansible.builtin.lineinfile:
@hbmartin
hbmartin / The Grug Brained Developer.md
Created June 18, 2025 17:18
A readable translation of https://grugbrain.dev/ with links to other perspectives

Software Development Principles: A Pragmatic Guide

A practical approach to software development based on years of experience

Introduction

This collection represents practical lessons learned from many years of software development. While not claiming exceptional intelligence, these insights come from extensive experience building and maintaining software systems, along with the mistakes that inevitably accompany that journey.

These principles are intended for developers at all levels, but particularly those who value pragmatic solutions over theoretical perfection. Some may find this approach overly simplistic, but experience suggests that simple, maintainable solutions often outperform complex, "elegant" ones.

@NatElkins
NatElkins / cloud-init.yaml
Created March 8, 2025 22:09
cloud-init script for VPS
#cloud-config
# Enable automatic package updates and upgrades during cloud-init execution
package_update: true
package_upgrade: true
packages:
# Security and Hardening
- ufw
- fail2ban
@thesamesam
thesamesam / xz-backdoor.md
Last active November 2, 2025 15:34
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@carlosonunez
carlosonunez / Dockerfile
Last active February 4, 2024 15:47
ugit, but even smaller!
FROM alpine:3.18 as base
ENV ESSENTIAL="tar sh"
ENV DEPS="ugit git fzf tput nl cut bash sed awk tr env xargs"
RUN apk add --no-cache \
bash \
coreutils \
git \
ncurses \
ncurses-terminfo \
@johnnydecimal
johnnydecimal / amazon-ses.sh
Last active July 14, 2025 09:15
Amazon SES mail sending script
#!/bin/bash
## ** UPDATE PER-MESSAGE **
message_body=$(<message.txt)
subject="The Quarterly, 1st ed. 2024-06 [D85.23.13]"
# sender
sender="Johnny ‘Decimal’ Noble <[email protected]>"
body="$message_body"
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active October 31, 2025 02:31
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
@gilangvperdana
gilangvperdana / README.md
Last active August 31, 2025 18:40
Install GeoIP for Nginx

General

  • If you want to see your client website region, you can install GeoIP module on Nginx
  • The project I've worked on, using (Filebeat, Logstash, Elasticsearch) after GeoIP is installed then visualized using Kibana or Grafana : image

Installation

sudo apt update
sudo apt install libnginx-mod-http-geoip
@rain-1
rain-1 / LLM.md
Last active October 20, 2025 07:02
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.