Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Slowly but surely implementing ISO 27001 ISMS

Rick Cogley RickCogley

👻
Slowly but surely implementing ISO 27001 ISMS
View GitHub Profile
@romkatv
romkatv / srand32.zsh
Last active May 4, 2024 05:04
srand32.zsh
# Returns a random 32-bit number.
# If /dev/urandom is cryptographically secure, so is srand32.
#
# If zsh is compiled with 64-bit number support, the result
# is non-negative. Otherwise it may be negative and the value
# is governed by the rules of unsigned-to-signed conversion in C.
#
# Examples:
#
# % print -r -- $(( srand32() ))
@tmanternach
tmanternach / nginx.conf
Created October 15, 2021 23:06
Old School blog served via https using nginx
# This server {} block is used to re-direct port 80/http traffic to port 443/https. Pretty common 301 re-direct.
server {
if ($host = static.trevormanternach.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name static.trevormanternach.com;
return 404; # managed by Certbot
}
@t-mart
t-mart / cheatsheet.md
Last active May 4, 2025 00:53
Tailwind v4 Syntax Cheatsheet

Tailwind v4 Syntax Cheatsheet

Tailwind v4 has new syntax for arbitrary values, variants, properties, and more. Here's the cheatsheet that I would have wanted when I first started using it.

Terms Primer

  • Property: Indicates an aspect of the appearance or layout of an element, such as margin or color. Are set to a value.
  • Custom Property (or CSS Variables): A property that is user-defined