Skip to content

Instantly share code, notes, and snippets.

@jakobhuss
jakobhuss / resolvers.sh
Last active March 15, 2022 06:29
Basic script for finding a list of dns resolvers that are "good". Usage is resolvers.sh or resolvers.sh domain-name.com
#!/usr/bin/bash
if [ $# -eq 0 ]; then
test_domain=example.com
else
test_domain=$1
fi
function rand(){
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1
@jakobhuss
jakobhuss / ollama_models.py
Created October 25, 2024 11:17
Python script to list all ollama models from their library site
#!/usr/bin/env python
from bs4 import BeautifulSoup
import requests
import json
def main():
soup = BeautifulSoup(requests.get("https://ollama.com/library?sort=popular").text)