Skip to content

Instantly share code, notes, and snippets.

@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@JBlond
JBlond / bash-colors.md
Last active June 24, 2025 13:09 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@libsteve
libsteve / BISAC Subject Headings (2024-11-16).csv
Last active June 24, 2025 13:09
A Swift script that scrapes the BISG website for the BISAC Subject Headings to prints a CSV table with all the subject headings.
ANT000000 ANTIQUES & COLLECTIBLES / General
ANT056000 ANTIQUES & COLLECTIBLES / Advertising
ANT002000 ANTIQUES & COLLECTIBLES / Art
ANT003000 ANTIQUES & COLLECTIBLES / Autographs
ANT005000 ANTIQUES & COLLECTIBLES / Books
ANT006000 ANTIQUES & COLLECTIBLES / Bottles
ANT007000 ANTIQUES & COLLECTIBLES / Buttons & Pins
ANT057000 ANTIQUES & COLLECTIBLES / Buying & Selling / General
ANT057010 ANTIQUES & COLLECTIBLES / Buying & Selling / Auctions & Dealerships
ANT057020 ANTIQUES & COLLECTIBLES / Buying & Selling / Estate Sales & Storage Units
Code Description Comment
Complete BISAC Subject Headings List, 2021 Edition Generated on 2022-02-03T17:00:35.308Z from https://bisg.org/page/BISACEdition
ANT000000 Antiques & Collectibles / General
ANT056000 Antiques & Collectibles / Advertising
ANT001000 Antiques & Collectibles / Americana
ANT002000 Antiques & Collectibles / Art
ANT003000 Antiques & Collectibles / Autographs
ANT005000 Antiques & Collectibles / Books
ANT006000 Antiques & Collectibles / Bottles
ANT007000 Antiques & Collectibles / Buttons & Pins
@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active June 24, 2025 12:56
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@brihernandez
brihernandez / FreelancerShipPhysics.cs
Last active June 24, 2025 12:53
Freelancer ship physics for Unity. Includes engine kill and thruster.
// ====================================================================================================
// In my codebase, all ships have their own instance of this that they use to apply physics with.
// I'm using a struct mostly because I want to maintain copy semantics.
// ====================================================================================================
public struct FlightInput
{
public float Pitch;
public float Yaw;
public float Roll;
@willurd
willurd / web-servers.md
Last active June 24, 2025 12:49
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@davidteren
davidteren / nerd_fonts.md
Last active June 24, 2025 12:33
Install Nerd Fonts via Homebrew [updated & fixed]
@MihailCosmin
MihailCosmin / cuda_11.8_installation_on_Ubuntu_22.04
Last active June 24, 2025 12:29 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check