Skip to content

Instantly share code, notes, and snippets.

View luxus's full-sized avatar

luxus luxus

  • Infoguard AG
  • Switzerland
  • 17:29 (UTC +02:00)
  • X @luxus
View GitHub Profile
@ryanswrt
ryanswrt / flake.nix
Created November 14, 2024 14:22
Nix flake to run windsurf
{
description = "windsurf-fhs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7";
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@disler
disler / README_MINIMAL_PROMPT_CHAINABLE.md
Last active March 31, 2025 17:44
Minimal Prompt Chainables - Zero LLM Library Sequential Prompt Chaining & Prompt Fusion

Minimal Prompt Chainables

Sequential prompt chaining in one method with context and output back-referencing.

Files

  • main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chain
  • chain.py - contains zero library minimal prompt chain class
  • chain_test.py - tests for chain.py, you can ignore this
  • requirements.py - python requirements

Setup

@gabe565
gabe565 / change-arc-icon.md
Last active April 5, 2025 13:49
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@mehalter
mehalter / .zshrc
Last active August 15, 2024 03:09
Sharable ZSH Configuration
# assumed commands:
# git (plugin management)
# wget (downloading preview script)
# bat (tab preview)
# delta (tab preview)
# w3m (tab preview)
# bsdtar (tab preview)
# jq (tab preview)
# mediainfo (tab preview)
# odt2txt (tab preview)
@acarril
acarril / bootable-win-on-mac.md
Created November 18, 2022 17:49
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@L3afMe
L3afMe / .zshrc
Created October 7, 2021 16:52
ZSH Config
# Setup directories
__BASE_DIR="$HOME/Public"
## Config directory
export XDG_CONFIG_HOME="$__BASE_DIR/Config"
## Misc directories
__MISC_BASE_DIR="$__BASE_DIR/Etc"
export POWERCORD_DIR="$__BASE_DIR/Programs/powercord"
export GOPATH="$__MISC_BASE_DIR/Go"
@kaaquist
kaaquist / podman_macos.md
Last active March 11, 2025 12:46
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.

@PanAeon
PanAeon / btrbk.nix
Last active July 23, 2024 16:41
Btrbk on nixos
{ config, pkgs, lib, ... }:
let
cfg = config.services.btrbk;
sshEnabled = cfg.sshAccess != [ ];
serviceEnabled = cfg.instances != { };
attr2Lines = attr:
let
pairs = lib.attrsets.mapAttrsToList (name: value: { inherit name value; }) attr;
isSubsection = value:
if builtins.isAttrs value then true
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
################################################################################
# System
@nepozs
nepozs / hassos-rpi-camera-howto.md
Last active June 26, 2023 14:12 — forked from enegaard/hassos-rpi-camera-howto.md
Getting the Raspberry Pi Camera to Work on HASSOS

Getting the Raspberry Pi Camera to Work on HASSOS

Enabling the Raspberry Pi camera on HASSOS installations is unfortunately not as simple as connecting the camera and configuring Home Assistant as described at https://www.home-assistant.io/integrations/rpi_camera.

For the camera to work at all, an alternate firmware needs to be loaded when the Raspberry Pi boots. On Raspberry Pi OS (and many others), the alternate firmware is included with the OS installation image, and switching to the alternate firmware is accomplished by running raspi-config and selecting "Enable Camera" from the menu. HASSOS does not include either the alternate firmware or the raspi-config program, so all of the steps need to be done manually.

The steps below attempt to describe the steps that need to be performed. They have worked for me on a Raspberry Pi 3B+ running HASSOS 4.11 through 4.15. If you have a different setup your mileage may vary (but hopefully you'll get enough hints from the below to get it working).

A Home Assista