Skip to content

Instantly share code, notes, and snippets.

@philschmid
philschmid / GEMINI.md
Last active November 5, 2025 10:34
Gemini CLI Plan Mode prompt

Gemini CLI Plan Mode

You are Gemini CLI, an expert AI assistant operating in a special 'Plan Mode'. Your sole purpose is to research, analyze, and create detailed implementation plans. You must operate in a strict read-only capacity.

Gemini CLI's primary goal is to act like a senior engineer: understand the request, investigate the codebase and relevant resources, formulate a robust strategy, and then present a clear, step-by-step plan for approval. You are forbidden from making any modifications. You are also forbidden from implementing the plan.

Core Principles of Plan Mode

  • Strictly Read-Only: You can inspect files, navigate code repositories, evaluate project structure, search the web, and examine documentation.
  • Absolutely No Modifications: You are prohibited from performing any action that alters the state of the system. This includes:

Here's a little CSS snippet to create a simple header to link yesterday, tomorrow, and T-1Y notes to the daily note. If you don't know what I'm talking about, you can check the @TfTHacker repo where they create a customized dashboard or @FromSergio youtube video explaining how to activate CSS customization.

Here are the steps:

  1. Copy the CSS code from the first comment below and create a new file in the ./obsidian/snippets folder. The name of the file will be the name of the snippet;
  2. In the Obsidian app, open Settings -> Appearance -> CSS Snippets and toggle the previously created snippet;
  3. Create a draft markdown file and paste the markdown from the second comment;
    1. Change the internal notes link if you want
  4. Change to Reading View en voilá!
@ajeetkumarrauniyar
ajeetkumarrauniyar / Array CheatSheet.md
Last active November 5, 2025 10:32
Cheat sheet of Array methods in JavaScript

Array Methods Cheat Sheet

1. push()

  • Definition: Adds one or more elements to the end of an array and returns the new length of the array.
  • Syntax: array.push(element1[, ...[, elementN]])
  • Example:
    let arr = [1, 2, 3];
    arr.push(4, 5);

console.log(arr); // Output: [1, 2, 3, 4, 5]

@rameerez
rameerez / telegram-mtproxy.md
Last active November 5, 2025 10:28
Telegram Proxy How-To: complete and up-to-date MTProxy tutorial

How to set up a Telegram Proxy (MTProxy)

This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.

Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.

Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.

Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.

@mwganson
mwganson / Parametric_Curve_FP.py
Last active November 5, 2025 10:25
Parametric Curve Macro for FreeCAD
# -*- coding: utf-8 -*-
__version__ = "2025.05.08"
__title__ = "Parametric_Curve_FP"
__author__ = "<TheMarkster> 2021, based on macro 3D Parametric Curve by Gomez Lucio, Modified by Laurent Despeyroux on 9th feb 2015"
__license__ = "LGPL 2.1"
__doc__ = "Parametric curve from formula"
__usage__ = '''Activate the tool and modify properties as desired'''
import FreeCAD, FreeCADGui
@atomicparade
atomicparade / wokwi-simulator-vs-code.md
Last active November 5, 2025 10:22
Using the Wokwi simulator in Visual Studio Code

Using the Wokwi simulator in Visual Studio Code

You can develop for ESP32 devices using only a computer using Wokwi. You can use Wokwi directly in your web browser, though you can only save files publicly and compilation may fail if the Wokwi servers are busy.

This guide will show how to create a new PlatformIO ESP32 project and and run it on your computer with Wokwi.

@JeodC
JeodC / rp5-wine-ports.md
Last active November 5, 2025 10:20
A beginner's guide to creating wine ports for the Ayn Odin 2, Retroid Pocket 5, and Retroid Pocket Mini

Rocknix Wine Ports

Using wine is a deep rabbit hole for anyone not familiar with the software, and an even deeper rabbit hole when combined with box86 or box64. This guide attempts to serve as a basic introduction to using the built-in wine and box packages included with Rocknix on a Retroid Pocket 5. While the Retroid Pocket Mini is a similar setup chain, it is weaker hardware than the Retroid Pocket 5 and thus the examples provided here may not function as well.

Terminology - Wine and Box86/64

The first thing anyone should understand is the vernacular used throughout this guide. Two tools are used to make wine ports possible on ARM64:

  • Box86 and Box64 by ptitSeb are Linux x86 and x86_64 emulators targeting AARCH64/ARM64 architecture.

  • Wine is a software that allows Windows programs to run on Linux systems. Prebuilt wine binaries can be downloaded from the [wine-builds](https://github.com

version: '3.9'
services:
db:
image: postgres:15-alpine
container_name: dyno-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: dyno_db
@dimaj
dimaj / NOZZLE_WIPE Macro.md
Last active November 5, 2025 10:13
Flashforge AD5m \ pro nozzle wipe macro

This is a macro for Flashforge Adventurer 5M (Pro) to wipe the nozzle before prints. This macro implies that you are using Tinkering Poko's model, which could be found on Printables

You should double check that the default values match up with your installation (or, you can pass in all parameters to the macro)

@robertness
robertness / sachs_data_import
Last active November 5, 2025 10:13
Import Sachs 2005 Bayesian Network Single Cell Dataset
importData <- function(dir){
# Imports datasets used in the paper:
#Sachs, Karen, et al. "Causal protein-signaling networks derived from multiparameter single-cell data." Science 308.5721 (2005): 523-529.
# Imports the data from the Data Files directory downloaded as a zip from the publication's site on Science.com
# Direct link to the file as of Dec 15, 2014:
# http://www.sciencemag.org/content/suppl/2005/04/21/308.5721.523.DC1/Sachs.SOM.Datasets.zip
#
require(gdata)
setwd(dir)
filenames <- system('ls',intern=T)