biscuide / userContent.css
0 polubień
0 forków
1 plików
Ostatnio aktywne
Dark mode for the firefox built in pdf reader. Inspiration and setup guide: https://pncnmnp.github.io/blogs/firefox-dark-mode.html
| 1 | @-moz-document regexp("^.*\\.pdf(?:[?#].*)?$") { |
| 2 | /* === Variables === */ |
| 3 | :root { |
| 4 | --bg-color: #292D32; |
| 5 | --input-bg-color: #2c2c2c; |
| 6 | --text-color: #ccc; |
| 7 | --border-color: #555; |
| 8 | --loading-bar-color: #333; |
| 9 | --icon-filter: invert(100%) brightness(200%); |
| 10 | } |
biscuide / Caddy AI crawler blocking
0 polubień
0 forków
1 plików
Ostatnio aktywne
Block AI crawlers in a Caddy webserver by useragent
| 1 | (blockAiCrawlers) { |
| 2 | @blockAiCrawlers { |
| 3 | header_regexp User-Agent "(?i)(^|\W)(Bytespider|CCBot|Diffbot|FacebookBot|Google-Extended|GPTBot|omgili|anthropic-ai|Claude-Web|ClaudeBot|cohere-ai)($|\W)" |
| 4 | } |
| 5 | handle @blockAiCrawlers { |
| 6 | abort |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | # Usage: |
biscuide / printFilesAsMdCode
0 polubień
0 forków
1 plików
Ostatnio aktywne
This script traverses a directory and prints the contents of files in markdown format.
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Function to print help message |
| 4 | print_help() { |
| 5 | echo "Description:" |
| 6 | echo " This script traverses a directory and prints the contents of files in markdown format." |
| 7 | echo " It was designed to simplify sharing code from a project with ChatGPT by formatting the files as markdown text." |
| 8 | echo " By default, it only includes files of type 'application' or 'text'." |
| 9 | echo "" |
| 10 | echo " Example output:" |
biscuide / get-css-colors.py
0 polubień
0 forków
1 plików
Ostatnio aktywne
Extracts all colors from a CSS file
| 1 | #!/usr/bin/python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | import sys |
| 4 | import re |
| 5 | import argparse |
| 6 | |
| 7 | def extract_colors(css_file, output_file): |
| 8 | color_pattern = re.compile(r'(#(?:[0-9a-fA-F]{3}){1,2})|' |
| 9 | r'(rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(,\s*\d*\.?\d+\s*)?\))') |
| 10 | colors = set() |
biscuide / startDockerMongoDB.bash
0 polubień
0 forków
1 plików
Ostatnio aktywne
Helper script to start/create a docker mongo DB
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # User-configurable variables |
| 4 | containerName="mongo-db-name" |
| 5 | dbUser="mongo-user" |
| 6 | dbPassword="mongo-password" |
| 7 | dbName="mongo-db" |
| 8 | |
| 9 | hostPort=27017 |
| 10 | containerPort=27017 |
biscuide / startDockerPostgreSQL.bash
0 polubień
0 forków
1 plików
Ostatnio aktywne
Helper script to start/create a docker PostgreSQL DB
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # User-configurable variables |
| 4 | containerName="postgres-db-name" |
| 5 | postgresUser="postgres-user" |
| 6 | postgresPassword="postgres-password" |
| 7 | postgresDB="postgres-db" |
| 8 | |
| 9 | hostPort=5432 |
| 10 | containerPort=5432 |
Nowsze
Starsze