Skip to content

Instantly share code, notes, and snippets.

@Udara-Dananjaya
Udara-Dananjaya / MacOS-Xampp-Instalation-Guide.md
Last active September 24, 2026 11:25
macOS XAMPP Installation and Composer Setup Guide

Step-by-step instructions for installing XAMPP, configuring paths, and installing Composer on macOS:

Install XAMPP:

  1. Go to XAMPP download page and download the DMG file.
  2. Open the downloaded DMG file.
  3. Press F4 and search for "Privacy and Security."
  4. In the "Security" section, you'll find the blocked app. Click "Open Anyway" to continue with the installation.
  5. Start the XAMPP services.
@madhurimarawat
madhurimarawat / GATE-CSE-DS-Resources.md
Last active September 24, 2026 11:25
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

๐Ÿ“Œ GATE Resources - CSE & Data Science

I have compiled all the resources that helped me in my GATE preparation, and I hope they help you too! ๐Ÿš€

@rodri-oliveira-dev
rodri-oliveira-dev / Dockerfile
Created September 23, 2026 17:15
A commented .NET 10 Dockerfile explaining multi-stage builds, NuGet cache optimization, and minimal runtime images.
# syntax=docker/dockerfile:1
# ------------------------------------------------------------
# STAGE 1: Restore dependencies
#
# We use the full .NET SDK here because restoring NuGet packages
# requires build tooling.
# ------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS restore
@PeronGH
PeronGH / fedora-lid-close.md
Created February 25, 2026 03:11
Prevent Sleep on Lid Close โ€” Fedora (GNOME/GDM)

Prevent Sleep on Lid Close โ€” Fedora (GNOME/GDM)

Tested on Fedora 43 with GNOME Shell 49.4. Two layers need to be configured: systemd-logind (the system) and GDM's gsd-power (the greeter), because GDM runs its own GNOME settings daemon that suspends independently.

1. Tell systemd-logind to ignore the lid switch

sudo mkdir -p /etc/systemd/logind.conf.d

sudo tee /etc/systemd/logind.conf.d/lid.conf << 'EOF'
@HughP
HughP / index.html
Last active September 24, 2026 11:12 — forked from wilson428/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Word Stone</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="canvas" id="canvas"></div>
<div id="wordlist" class="wordlist"></div>
@rutvij2292
rutvij2292 / ChatController.php
Last active September 24, 2026 11:09
AI Integration through Laravel App
<?php
namespace App\Http\Controllers;
use App\Services\ChartPromptTemplate;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class ChatController extends Controller {
public function __invoke(Request $request): \Illuminate\Http\JsonResponse
@b0gdanw
b0gdanw / Disable-Sequoia-Bloatware.sh
Last active September 24, 2026 11:07
Disable Sequoia Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Donโ€™t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13), macOS Sonoma (14) and macOS Sequoia (15)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@mitchogaard
mitchogaard / getopts-cheat-sheet.sh
Last active September 24, 2026 11:05
I wanted a getopts cheat sheet for myself so I didn't have to go back to the docs all the time.
#!/usr/bin/env bash
# If an option character is provided that's not in the option string, $option will be set to "?". Additionally...
# if the option string does not start with a colon, $OPTARG is unset, and a message is written to STDERR. Exit status 0.
# if the option string starts with a colon, $OPTARG is set to the option character and nothing is written to STDERR.
# If an option-argument is missing for an option character that requires it...
# if the option string does not start with a colon, $option will be set to "?", $OPTARG is unset and a message is written to STDERR. Exit status 0.
# if the option string starts with a colon, $option will be set to ":", $OPTARG is set to the option character, and nothing is written to STDERR.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ankurpandeyvns
ankurpandeyvns / zyxel_backup_restore.py
Last active September 24, 2026 11:03
AOT-5221ZY Backup/Restore Decryption+Encryption
#!/usr/bin/env python3
"""
================================================================================
Zyxel Router Configuration Backup/Restore Tool
================================================================================
DESCRIPTION:
This tool provides comprehensive functionality for working with Zyxel router
configuration backups. It can download, decrypt, encrypt, and restore