Skip to content

Instantly share code, notes, and snippets.

@callumlocke
callumlocke / .zshrc
Last active July 12, 2025 02:12
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@albedozero
albedozero / spherical_harmonics.py
Created March 15, 2021 07:18
Plots spherical harmonics in 3D using matplotlib
import matplotlib.pyplot as plt
from matplotlib import cm, colors
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
from scipy.special import sph_harm
# resolution - increase this to get a smoother plot
# at the cost of slower processing
N = 50
@espio999
espio999 / MP4toGIF-MoviePy.py
Created April 7, 2023 04:02
Convert MP4 to GIF with MoviePy
from moviepy.editor import *
def getCroppedFrames(movie, crop_size, resize_size):
cropped_movie = movie.crop(x1=0, y1=0, width=crop_size["w"], height=crop_size["h"])
resized_movie = cropped_movie.resize(height=resize_size["h"])
return resized_movie
def makeGIF(path, movie, fps, program):
@HckrXyzz
HckrXyzz / URL_List_Genarateor.md
Created July 12, 2025 01:59
URL List Genarateor
@AndrewAltimit
AndrewAltimit / README.md
Last active July 12, 2025 03:04
Claude Code and Gemini CLI Integration

Gemini CLI Integration for Claude Code MCP Server

A complete setup guide for integrating Google's Gemini CLI with Claude Code through an MCP (Model Context Protocol) server. This provides automatic second opinion consultation when Claude expresses uncertainty or encounters complex technical decisions.

🚀 Quick Start

LLM for code generation

Currently three main styles:

  1. Autocomplete
    • e.g. github copilot, windsurf
    • Inline "ghost text" as you type
    • Sometimes amazingly good; often pretty useless
    • Need to train yourself to ignore spurious suggestions
@Skeeg
Skeeg / batocera-bootstrap
Last active July 12, 2025 01:46
batocera-config-bootstrap
#!/usr/bin/env python3
#
# Tooling to allow configuration of Batocera settings from files located on the boot partition.
#
# This can be invoked manually, or ran during the postshare.sh process to start a new system with a preferred configuration.
# If the postshare.sh script is used, the configurations will be applied on each boot.
# This can make it such that your preferred wifi network will be reapplied on every boot,
# So if you change networks as you travel, it would always reset to your /boot/bootstrap.batocera.conf.<named> setting upon reboot.
#
# Recommended usage is to place files directly on the boot partition after flashing a new image and place bootstrap files in that directory.
@burkeholland
burkeholland / 4.1.chatmode.md
Created July 8, 2025 22:53
41. Beast Mode V3
description model
4.1 Beast Mode v3
GPT-4.1

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

@burkeholland
burkeholland / 4.1.chatmode.md
Last active July 12, 2025 01:44
4.1 Beast Mode v2
description tools
4.1 Beast Mode
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

@stefanbschneider
stefanbschneider / networking_datasets.md
Last active July 12, 2025 01:43
List of datasets related to networking. Useful for data-driven evaluation or machine learning approaches. Feel free to comment with updates.