Skip to content

Instantly share code, notes, and snippets.

View fdovila's full-sized avatar

Fdo. Avila fdovila

View GitHub Profile
@ljw1004
ljw1004 / you_are_not_right.sh
Last active October 30, 2025 15:26
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/bin/bash
set -euo pipefail
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR
# This is a Claude Code hook to stop it saying "you are right".
#
# Installation:
# 1. Save this script and chmod +x it to make it executable.
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file)
#

📱Valet

A Decentralized Automated Testing Network

🙈 tl;dr:

Valet is a decentralized test automation network where developers run tests on real devices (iOS or Android), and device owners get paid for executing them. Using Nostr for discovery, Lightning for payments, and Raspberry Pi nodes for execution, it’s less expensive, more open, and more scalable than traditional test clouds. Built by Jason Huggins (Selenium, Appium, Sauce Labs), Valet is an experiment in P2P testing at scale. 🚀

@Node0
Node0 / Download_ChatGPT_convo_in_markdown.js
Created April 5, 2023 22:53
A tampermonkey script that inserts a download button which formats the current chat into markdown and then downloads the MD file to your computer.
// ==UserScript==
// @name Download ChatGPT Convo in Markdown
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Adds a download chat button to download the current chatGPT conversation in markdown format. Original MD processing code by: u/Creative_Original918 from Reddit. Code from the following thread: https://www.reddit.com/user/Creative_Original918/ https://www.reddit.com/r/ChatGPT/comments/zm237o/comment/jdjwyyo/?utm_source=share&utm_medium=web2x&context=3
// @author https://github.com/node0 and https://www.reddit.com/user/Creative_Original918/
// @match https://chat.openai.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant none
// ==/UserScript==
@malcolmocean
malcolmocean / chatgpt_bitch.user.js
Last active April 10, 2023 19:05
UserScript: Clarify precisely why ChatGPT won't answer questions
// ==UserScript==
// @name Clarify precisely why ChatGPT won't answer questions
// @namespace
// @version 0.1
// @description Finds and replaces text in specified elements on a webpage, and detects the appearance of new matching elements
// @match https://chat.openai.com/*
// @grant none
// @license MIT License
// ==/UserScript==
@githubfoam
githubfoam / powershell script cheat sheet
Last active June 27, 2025 23:41
powershell script cheat sheet
==========================================================================================================
#Gemini
==========================================================================================================
#ChatGPT
==========================================================================================================
#Gemini
Ensuring PowerShell DSC and Chocolatey are Installed
PowerShell DSC is a feature of PowerShell. If you have PowerShell installed on your Windows 10 system, DSC is likely already available.
@chenlilyd
chenlilyd / hide chatgpt sidebar
Created March 6, 2023 02:08
hide-chatgpt-sidebar.js
// ==UserScript==
// @name Hide ChatGPT Sidebar
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Hide the sidebar of the ChatGPT website
// @author You
// @match https://chat.openai.com/chat*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @grant none
@ChaseH88
ChaseH88 / chatgpt-voice-playback.js
Created February 20, 2023 18:39
This is a script that can be used directly in the console of ChatGPT to create voice playback buttons so you can hear the responses.
// ==UserScript==
// @name Add Button Before Element - ChatGPT
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Add HTML button before an element on the page.
// @author Chase Harrison
// @match https://chat.openai.com/*
// @grant none
// ==/UserScript==
@jamescasbon
jamescasbon / template.py
Created December 11, 2011 16:37
Pure python templates using with statement
"""
A really stupid python template language inspired by coffeekup, markaby.
Do not use this code, it will ruin your day. A byproduct of insomnia.
TL;DR
-----
This module defines a template language that allows us to do:
d = Doc()
@fdovila
fdovila / illuminaobscura.py
Created November 2, 2011 23:52 — forked from audy/illuminaobscura.py
illuminaobscura.py
#!/usr/bin/env python
from glob import glob
from PIL import Image, ImageDraw
from itertools import defaultdict
# Create matrix
matrix = defaultdict(dict)
lanes = [1, 2, 3, 4, 5, 6, 7]
@audy
audy / ghetto_blaster.rb
Created May 23, 2011 22:00
ghetto_blaster
LEVEL = 9
database = ARGV[0]
query = ARGV[1]
require 'zlib'
# Compression function.
def deflate(string)
z = Zlib::Deflate.new(LEVEL)