Skip to content

Instantly share code, notes, and snippets.

View TraversalFailIT.java
import java.util.*;
import org.apache.commons.compress.utils.Lists;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Column;
import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;
import org.junit.jupiter.api.Test;
View RocksBdbGetSliceBench.java
package com.bic.jmh;
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Supplier;
import com.sleepycat.je.Cursor;
View TransactionTest.java
package org.janusgraph;
import org.janusgraph.core.JanusGraph;
import org.janusgraph.core.JanusGraphFactory;
import org.janusgraph.testutil.MemoryAssess;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.io.TempDir;
View VK.jadt
package c.tl.vk
import java.math.BigInteger
import java.util.List
import c.tl.type.Int128
ResPQ = req_pq(Int128 nonce)
| resPQ(Int128 nonce,
Int128 server_nonce,
BigInteger pq,
View search.js

Deps:

jquery jquery ui openlayers

View dispatch_click.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.27.2"></script>
<script type="text/javascript" src="js-libs/jquery-1.7.js"></script>
<style>
@mad
mad / mongodb-collection-patch-r27936.diff
Created Jan 28, 2012
Trying retrieve collection from mongodb
View mongodb-collection-patch-r27936.diff
Index: scripts/mongodb-databases.nse
===================================================================
--- scripts/mongodb-databases.nse (revision 27936)
+++ scripts/mongodb-databases.nse (working copy)
@@ -65,6 +65,20 @@
status, result = mongodb.query(socket, packet)
if not status then return result end-- Error message
+ for k,v in pairs(result["databases"]) do
+ local result2, colls
@mad
mad / nse
Created Jan 27, 2012
NSE skeleton for emacs yassnippet
View nse
# -*- mode: snippet -*-
# name: nse
# --
description = [[
$0
]]
---
-- @usage
-- nmap --script <this script> <ip>
@mad
mad / mf.html
Created Jan 17, 2012
microformat test
View mf.html
<html>
<head>
</head>
<body>
<!--
Test it there:
@mad
mad / nsd.sh
Created Jan 17, 2012
Monitor router open connections in command-line (D-Link DI-604)
View nsd.sh
#! /bin/bash
LOGIN="admin"
PWD="password"
# now only for d-link DI-604
URL="http://192.168.0.1/cgi-bin/natp"
BASIC_AUTH=$(echo -n ${LOGIN}:${PWD} | base64)