Skip to content

Instantly share code, notes, and snippets.

@astropuffin
astropuffin / gist:00e928cbe95861bd99a79251f04f1b3a
Created August 26, 2023 02:37 — forked from McFunkypants/gist:87f07ac5e8affad34391
Sid Meier's 10 Rules of Game Design
Sid Meier's 10 Rules of Game Design
1. Choose a topic you have a passion for. Game Design is about creativity.
2. Do research after the game is done. Tap into the player’s brain.
3. Define your axioms, refine your axioms. Prototype, prototype, prototype; sit in all the chairs.
4. Double it or cut it in half. You are more wrong than you think.
@astropuffin
astropuffin / index.html
Created January 3, 2020 07:57 — forked from chrisvfritz/index.html
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@astropuffin
astropuffin / tls-check.sh
Last active August 9, 2017 01:59
check tls certs
#!/bin/bash
while read d; do
echo $d
gtimeout 1 nc -z $d 443
if [ $? -eq 0 ]; then
gtimeout 2 openssl s_client -connect $d:443 2> /dev/null < /dev/null| openssl x509 -noout -dates
else
echo "No TLS enabled"
fi
done< domains
#!/bin/bash
function base() {
# this is the base case in the center of the spiral
echo -n 1
echo 1 > .number
}
function addTop() {
#this function extends the string by one row on the top