Skip to content

Instantly share code, notes, and snippets.

@huksley
huksley / kiosk-install.sh
Last active May 5, 2025 22:01
Raspberry PI OS Lite configure kiosk - shows multiple web pages as chrome tabs and rotates between them
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install --no-install-recommends -y xserver-xorg xinit x11-xserver-utils
sudo apt-get install -y chromium-browser matchbox-window-manager xautomation unclutter xdotool
sudo tee /boot/kiosk.sh <<EOF
#!/bin/sh
xset -dpms # disable DPMS (Energy Star) features.
xset s off # disable screen saver
xset s noblank # don't blank the video device
@butschster
butschster / README.md
Last active May 5, 2025 21:54
Useful prompts

Context Generator: Shared Prompts Gist

I've created this Gist with a collection of ready-to-use prompts for Context Generator's MCP server. This showcases one of its most powerful features - the ability to import shared prompts from external sources.

Introduction

This Gist provides a library of pre-configured prompts that can be easily imported into any Context Generator project. These prompts are designed to help with common development tasks when working with Context Generator and LLMs.

Why This Is Extremely Useful

@otac0n
otac0n / SexAndGender.linq
Last active May 5, 2025 21:51
A theory of sex and gender.
// My opinions are my own.
public class PseudobicerosHancockanus : Flatworm { }
public abstract class Flatworm : Animal
{
public Flatworm() : this(Sex.Male | Sex.Female) { }
public Flatworm(Sex sex) : base(sex) { }
}
@ChrisTollefson
ChrisTollefson / Boot Camp Assistant - USB Install Disk.md
Last active May 5, 2025 21:49
Boot Camp Assistant - Enabling creation of bootable USB disks for installing Windows
@GhostofGoes
GhostofGoes / mac_addrs.py
Last active May 5, 2025 21:58
Get MAC addresses using a variety of Python packages.
# **************************************
# ** Get MAC address of a remote host **
def arpreq_ip(ip):
# type: (str) -> Optional[str]
import arpreq
return arpreq.arpreq('192.168.1.1')
def scapy_ip(ip):
# type: (str) -> str
"""Requires root permissions on POSIX platforms.
@notpeter
notpeter / Mac_mIRC.md
Last active May 5, 2025 21:45
Mac mIRC: Running mIRC on OSX with Wine

I found the mac native IRC clients lacking. So let's run mIRC with Wine...

Installing Wine, Mirc and OpenSSL

  • Download the [mIRC installer][6] and put it somewhere safe.
  • Download the [OpenSSL installer][5] (openssl-0.9.8y-setup.exe as of May 2014)
  • Download the [Wine for Darwin and Mac OSX][7] installer. Mount the DMG, run 'Install Wine.
  • Run the newly installed /Applications/Wine.app
  • Select 'Wine Config' from the Wine Menu Screenshot
@sevynkooper
sevynkooper / windows-11-keys.md
Last active May 5, 2025 21:44 — forked from Esaqe/windows-keys.md
Windows 11 Product Keys

NOTE

Please note that these are NOT valid Windows 11 product or license keys for Windows activation.

These keys merely designate the edition of Windows that will be installed during the setup process. However, they do not serve to activate or provide a legitimate license for the Windows installation.

Consequently, while these keys can help determine which version of Windows will be installed, they are insufficient for activating or legally licensing the operating system on your device.

Proper activation and licensing require valid product keys obtained through legitimate means.

@msrivastav13
msrivastav13 / salesforce_prompt_builder_pocket_guide_for_apex_developers.md
Last active May 5, 2025 21:43
codeLive: A Deep Dive into Apex for Prompt Builder

What is Prompt Builder?

Prompt Builder from Salesforce is a powerful tool that enables organizations to add generative AI capabilities to their business application. It allows organizations to create and manage prompt templates.

What is Prompt Builder?

Prompts

Sets of questions or instructions provided to a large language model to generate relevant content. To learn more complete the trailhead module below

@herlon214
herlon214 / settings.json
Created May 5, 2025 21:42
vscode settings
{
"window.commandCenter": 1,
"workbench.iconTheme": "material-icon-theme",
"redhat.telemetry.enabled": false,
"editor.formatOnSave": true,
"editor.minimap.autohide": true,
"editor.tabSize": 2,
"window.zoomLevel": 2,
"workbench.colorTheme": "Dracula Theme",
"vim.easymotion": true,
@vedant11-meritic
vedant11-meritic / BaseMethodSpec.py
Last active May 5, 2025 21:31
When one needs to separate the param parsing and generation concern, so that one can add new API processors without touch the Controller or the common ClassService. Also check: https://gist.github.com/vedant11-meritic/d419bbd6b7cdd6ef354018a59dcc64c1
from abc import ABC, abstractmethod
from typing import Generic, TypeVar
from pydantic import BaseModel
InitParams = TypeVar("InitParams", bound=BaseModel)
RunParams = TypeVar("RunParams", bound=BaseModel)
class BaseMethodSpec(ABC, Generic[InitParams, RunParams]):
@abstractmethod
def get_initialize_params(self) -> InitParams: