Skip to content

Instantly share code, notes, and snippets.

View JoshMock's full-sized avatar

Josh Mock JoshMock

View GitHub Profile
@JoshMock
JoshMock / restful-http-method-cheat-sheet.md
Last active July 10, 2023 03:28
RESTful HTTP method cheat sheet

GET

  • fetch entity data only
  • does not alter any data, ever

POST

  • create a new entity with the data values provided in the body
  • if an entity already exists with these values, create it anyway (read: non-idempotent)
  • should not be used to alter an existing entity
@JoshMock
JoshMock / albums.md
Created January 2, 2020 17:19
My favorite albums of the 2010s
  • A$AP Ferg: Trap Lord
  • Aldous Harding: Designer
  • Angel Olsen: MY WOMAN
  • Antony & the Johnsons: Cut the World
  • Arcade Fire: The Suburbs
  • Arranged Marriage NP: Arranged Marriage NP
  • Astronoid: Air
  • Atoms for Peace: AMOK
  • Beach House: Bloom
  • Beach House: Teen Dream
@JoshMock
JoshMock / autoclose.py
Created August 16, 2021 18:21
Quitter clone for Linux
#!/usr/bin/env python3
# Linux-compatible clone of Quitter for Mac https://marco.org/apps#quitter
# implementation inspired by: https://github.com/acenturyandabit/mini-miza/blob/master/autohide.py
import subprocess
import time
import os
apps = {