Skip to content

Instantly share code, notes, and snippets.

View Lance-DC's full-sized avatar

Lance Taylor Lance-DC

View GitHub Profile
@Lance-DC
Lance-DC / jq-cheetsheet.md
Created February 15, 2023 14:53 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@Lance-DC
Lance-DC / serve.py
Created August 14, 2019 18:14 — forked from dustingetz/serve.py
serve static assets for frontend development, with http headers to disable caching
#!/usr/bin/env python
import SimpleHTTPServer
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_my_headers()
SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
def send_my_headers(self):
self.send_header("Cache-Control", "no-cache, no-store, must-revalidate")