Skip to content

Instantly share code, notes, and snippets.

@jeremysears
jeremysears / gremlin-cheat-sheet.md
Last active Jan 18, 2021
Gremlin Cheat Sheet in Groovy
View gremlin-cheat-sheet.md

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 Aug 23, 2019
DSE Graph Schema Management Cheat Sheet in Gremlin Groovy
View dse-graph-schema-cheat-sheet.md

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:

anonymous
anonymous / gist:759f6d02301b25e18db5
Created May 18, 2015
com.apple.dt.fetchsymbols example usage for iOS 7
View gist:759f6d02301b25e18db5
#include "stdafx.h"
#include "MobileDevice.h"
#pragma unmanaged
#include "libimobiledevice/libimobiledevice.h"
#include "libimobiledevice/lockdown.h"
#include "libimobiledevice/installation_proxy.h"
#include "libimobiledevice/afc.h"
@lightbulbone
lightbulbone / dsc_extractor.patch
Created Jul 26, 2013
Patch for Apple's dsc_extractor in the dyld package.
View dsc_extractor.patch
--- dyld-210.2.3/launch-cache/dsc_extractor.cpp 2012-05-21 02:35:15.000000000 -0400
+++ dyld-210.2.3/launch-cache/dsc_extractor.cpp 2013-07-26 16:05:03.000000000 -0400
@@ -37,6 +37,7 @@
#include <mach-o/arch.h>
#include <mach-o/loader.h>
#include <Availability.h>
+#include <dlfcn.h>
#define NO_ULEB
#include "Architectures.hpp"