Skip to content

Instantly share code, notes, and snippets.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active October 22, 2026 20:37
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@dragonfire1119
dragonfire1119 / adguard-home-docker-compose.yml
Last active October 22, 2026 20:34
adguard-home-docker-compose.yml
version: '3' # Specify the Docker Compose version
services:
adguardhome: # Define the service named 'adguardhome'
image: adguard/adguardhome # Use the 'adguard/adguardhome' Docker image
container_name: adguardhome # Set the container name to 'adguardhome'
restart: unless-stopped # Restart the container automatically unless stopped manually
ports: # Map container ports to host ports
# Expose port 53 on TCP and UDP for DNS queries
- "53:53/tcp"
@HDR
HDR / Forza Horizon 6 Car Ordinals.json
Last active October 22, 2026 20:33
All Car Ordinal id's for Forza Horizon 6 as of 13.10.26, Forza Horizon 6, Car Ordinals, Forza Horizon 6 Car Ordinals, FH6, Forza Horizon car id's, Forza Horizon 6 car ordinals list
{
"1969 Toyota 2000 GT": "247",
"1964 Ferrari 250 GTO": "249",
"1954 Mercedes-Benz 300 SL": "251",
"1994 Ferrari F355 Berlinetta": "253",
"1991 Ferrari 512 TR": "255",
"1973 Porsche 911 Carrera RS": "260",
"1995 Porsche 911 GT2": "261",
"2004 Porsche 911 GT3": "262",
"1982 Porsche 911 Turbo": "265",
@jaypeche
jaypeche / inotify_simple.c
Created December 17, 2014 12:35
inotify basic example
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/inotify.h>
#include <limits.h>
#define MAX_EVENTS 1024 /*Max. number of events to process at one go*/
#define LEN_NAME 16 /*Assuming that the length of the filename won't exceed 16 bytes*/
#define EVENT_SIZE ( sizeof (struct inotify_event) ) /*size of one event*/

SBOM register

This register distinguishes acquired files, request/entitlement routes, generation tools, and searches that did not yield an artifact. An OSS notice or source dependency inventory does not establish the interpreter in a deployed appliance.

39 unique artifact files were acquired and their stored-file SHA-256 hashes verified. Some inventories describe source dependencies, whole distribution catalogs or PHP-negative base images; inspect the scope column and JSON before use.

Acquired artifacts

Vendor / product Release Format PHP inspection / scope Download and local file
[{
"question": "A flashing red traffic light signifies that a driver should do what?",
"A": "stop",
"B": "speed up",
"C": "proceed with caution",
"D": "honk the horn",
"answer": "A"
}, {
"question": "A knish is traditionally stuffed with what filling?",
"A": "potato",
@Sairahcaz
Sairahcaz / php2shell-triage.sh
Last active October 22, 2026 20:09
PHP2Shell (CVE-2026-109618/109619) read-only triage script
#!/usr/bin/env bash
#
# php2shell-triage.sh
# Read-only triage for PHP2Shell (CVE-2026-109618 / CVE-2026-109619).
# It checks whether your PHP build was in the vulnerable range and looks for
# the few signals an exploitation attempt tends to leave behind.
#
# It never changes anything on the system. It only reads logs and lists files.
# Run as root (or via sudo) so it can read FPM and auth logs:
# sudo bash php2shell-triage.sh [WEBROOT]
@Antonzlo
Antonzlo / index.md
Last active October 22, 2026 20:09
Apple BLE data for nRF Connect (popups)
@niteshpurohit
niteshpurohit / README.md
Created May 19, 2026 22:35
xcode mount image,volumes to external disk

README.md — Prepare External Disk for Xcode Simulator Storage

This gist contains:

README.md  # disk prep and safety notes
install.sh      # creates sparsebundles, mounts them, installs LaunchDaemon
uninstall.sh    # removes LaunchDaemon and detaches mounts; preserves sparsebundles
@jonmchan
jonmchan / php2shell_docker_audit.sh
Last active October 22, 2026 20:01
quick dirty php2shell docker audit script
#!/usr/bin/env bash
# ANSI Color Codes for output readability
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC_RESET='\033[0m'
echo -e "${BLUE}=== Starting Docker PHP2Shell Audit ===${NC_RESET}\n"