Skip to content

Instantly share code, notes, and snippets.

View benthomasson's full-sized avatar

Ben Thomasson benthomasson

  • Ansible by RedHat
View GitHub Profile
name description
browser-fetch
Fetch authenticated web content using browser session (SSO, internal sites)

browser-fetch Skill

Fetch web content from authenticated/internal sites using a real browser with persistent login sessions.

Repository: https://github.com/benthomasson/browser-fetch

@benthomasson
benthomasson / SKILL.md
Last active February 13, 2026 19:27
curl skill
name description
curl
Fetch web content using curl (faster alternative to WebFetch)

curl Skill

Quick reference for fetching web content with curl instead of WebFetch tool.

When to Use This Skill

- Fruits:
- Apple
- Banana
- Orange
- Grapes
- Mango
- Berries (strawberry, blueberry)
- Pineapple
- Kiwi
- Pear
[
"Pasta",
"Rice",
"Chicken",
"Beef",
"Salmon",
"Egg",
"Milk",
"Cheese",
"Banana",
{
"Fruits": [
"Apple",
"Banana",
"Orange",
"Grapes",
"Strawberries",
"Kiwi",
"Mango",
"Pineapple",
1. **Fruits:**
- Apple
- Banana
- Orange
- Grapes
- Strawberries
- Kiwi
- Mango
- Pineapple
- Watermelon
@benthomasson
benthomasson / settings.py
Last active June 27, 2024 18:16 — forked from ipmb/settings.py
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
---
- name: Using locals instead of events
hosts: all
sources:
- range:
limit: 5
rules:
- name: r1
condition:
all:
@benthomasson
benthomasson / gist:a6c84ad5a64f4e056ab32a7f6e3e02d1
Created January 22, 2022 12:14 — forked from abadger/gist:d3d1917cb9cb7b1cf31454f0c726e41b
Documentation on how Ansible modules are made ready to be executed on a remote system.
=======
Modules
=======
This is an in-depth dive into understanding how Ansible makes use of modules.
It will be of use to people working on the portions of the Core Ansible Engine
that execute a module, it may be of interest to people writing Ansible Modules,
and people simply wanting to use Ansible Modules will likely want to read
a different paper.
def mystery(x):
assert x >= 0
if x <= 0:
return 1
if x == 1:
return 1
return mystery(x-1) + mystery(x-2)