Skip to content

Instantly share code, notes, and snippets.

@jeremysears
jeremysears / pre-push
Last active September 25, 2023 19:50
An interactive Git pre-push hook to prevent submission of FIXME tags, unless acknowledged.
#!/usr/bin/env bash
matches=$(git diff HEAD~1 HEAD | grep -E '\+.*?FIXME')
if [ "$matches" != "" ]; then
echo >&2 "A 'FIXME' tag has been detected. Please fix all 'FIXME' tags before committing."
echo >&2 ""
echo >&2 "Matching FIXME:"
echo >&2 "${matches}"
echo >&2 ""
@jeremysears
jeremysears / keybase.md
Created July 31, 2018 15:27
keybase.md

Keybase proof

I hereby claim:

  • I am jeremysears on github.
  • I am jeremysears (https://keybase.io/jeremysears) on keybase.
  • I have a public key ASDaNVjtVZBOpexyv4deM7ABtyKQ-L6V_wT_908Js4GTMQo

To claim this, I am signing this object:

@jeremysears
jeremysears / gremlin-cheat-sheet.md
Last active April 26, 2024 08:35
Gremlin Cheat Sheet in Groovy

Gremlin Cheat Sheet in Groovy

Gremin traversal examples taken from the excellent DS330: DataStax Enterprise Graph course.

Creating Vertices and Vertex Properties

Add a Vertex

Vertex u = graph.addVertex("user");
       u.property("userId","u2016");
 u.property("age",36);
@jeremysears
jeremysears / dse-graph-schema-cheat-sheet.md
Last active May 10, 2022 21:53
DSE Graph Schema Management Cheat Sheet in Gremlin Groovy

DSE Graph Schema Management Cheat Sheet in Gremlin Groovy

DSE Graph schema management examples taken from the excellent DS330: DataStax Enterprise Graph course.

Graph Definition

List all graph names:

system.graphs();  // => KillrVideo

Describe all graphs: