Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Set the icons and branding
selfServiceBrandIcon="/Users/$3/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png"
fileVaultIcon="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/FileVaultIcon.icns"
if [[ -f $selfServiceBrandIcon ]]; then
brandIcon="$selfServiceBrandIcon"
else
brandIcon="$fileVaultIcon"
@leocomelli
leocomelli / git.md
Last active February 25, 2026 20:57
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@PolyShifter
PolyShifter / download_megascans.py
Created October 14, 2024 19:26
Download Quixel Megascans with the ability to dictate what resolution and file type you want to download. Also checks for corrupt zip files. Tested with Surfaces and 3d Assets.
import zipfile
import os
import json
import concurrent.futures
import requests
import shutil
import time
######## INITIAL SETUP ########
# Define the token, download path, and target category
@jateenrawal1002
jateenrawal1002 / Trajectory analysis.py
Created August 6, 2025 08:52
This Python script calculates interplanetary transfer parameters for a spacecraft mission departing from Earth (Planet A) to a distant ice giant (Planet C) located ~40 AU away in the Epsilon Eridani system.
import math
# === Constants ===
G = 6.67430e-11 # m^3/kg/s^2 (Gravitational Constant)
g0 = 9.81 # m/s^2 (Standard gravity)
AU = 1.496e11 # meters
M_star = 1.989e30 # kg (Sun-like)
M_a= 5.972e24 # kg
# === Spacecraft Settings ===

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

@mberman84
mberman84 / prompts.md
Last active February 25, 2026 20:54
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

Cloudflare + Nginx Origin Certificate SSL Setup

Step 1 - Generating an Origin Certificate

First thing to do is to create your certificate on Cloudflare:

  1. On your website dashboard, go to SSL/TLS > Origin Server
  2. On Hostnames section, change the hostnames to your domains or subdomain. e.g. tobako.bidipeppercrap.com
  3. On Origin Certificates section, press the Create Certificate button
  4. Leave the default settings and press Next
  5. Copy the PEM certificate to your server: /etc/ssl/certs/your.domain.com.pem
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md

@ryanlua
ryanlua / fritzing-download.md
Last active February 25, 2026 20:47
Free download of Fritzing using the official download links
@figengungor
figengungor / gist:5673813
Created May 29, 2013 21:02
Sound Effect for a Game in Java
package edu.iyte.ceng316.view;
import java.io.*;
import java.net.URL;
import javax.sound.sampled.*;
public enum SoundEffect {
HIT("/edu/iyte/ceng316/resource/hit.wav"),
MISS("/edu/iyte/ceng316/resource/miss.wav"),
BG("/edu/iyte/ceng316/resource/background.wav"),
CONGRATS("/edu/iyte/ceng316/resource/congrats.wav");