Skip to content

Instantly share code, notes, and snippets.

View geoffrey-wu's full-sized avatar

Geoffrey Wu geoffrey-wu

View GitHub Profile
@cherryblossom000
cherryblossom000 / Minimum number of levels and bookshelves required for Minecraft enchantments.md
Last active April 27, 2026 15:07
Minimum number of levels and bookshelves required for Minecraft enchantments

Minimum number of levels and bookshelves required for Minecraft enchantments

Last updated: August 2019

I made this for my answer to a question on Arqade/Gaming Stack Exchange.

Enchantment Levels Bookshelves
Aqua Affinity I 0 0
Bane of Arthropods I 5 3
@mattheworiordan
mattheworiordan / restart.sh
Created August 19, 2017 13:23
Heroku scheduled restarts
#!/bin/sh
# Set up the Heroku scheduler to run this command every hour. See example setup at https://goo.gl/nMCSH3
#
# Requires env vars to be set in Heroku with `heroku config:set`:
# - HEROKU_APP_NAME: this is just the app name in Heroku, i.e. `heroku apps` will list all apps you have access to
# - HEROKU_CLI_USER: Once Heroku CLI is authenticated (https://goo.gl/Qypr4x), check `cat .netrc` (or `_netrc` on Windows),
# look for `login` under `machine api.heroku.com`
# - HEROKU_CLI_TOKEN: As above, but use the `password` field
#
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 5, 2026 10:18
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
@willurd
willurd / web-servers.md
Last active May 5, 2026 10:35
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000